We have a .Net project with some embedded resources that are xml files with a custom filename extension.
For some reason, on my computer, Visual Studio has suddenly (for the last few days) decided to treat these as TypeScript files and is producing tens of thousands of compile errors on each build.
The errors don't stop the build, but they do slow it down and make it hard to work out what the real errors are when I have them.
So far I've tried adding
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
to my csproj files, and I've looked at the "Compile on Save" setting for Javascript and it is not enabled. Neither of these fixes seem to work.
We don't have any TypeScript in our project at all.
I'm running Visual Studio 2017 15.5.7
Nobody else in my team is reporting this issue.
I was able to get rid of the TS errors hence the build failures with below settings in VS 2019
Tools > Options > Text Editor > JavaScript/TypeScript > Code Validation > JavaScript Errors > Set the values under JavaScript Errors to False.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With