Adding TypeScript support in latest version of VS is easy - just add a TypeScript file and VS will automatically will reconfigure the project.
However when all TS files are gone it spits out this warning:
Warning: The TypeScript Compiler was given no files for compilation, so it will skip compiling.
It is possible to manually remove TypeScript support by editing the project file in notepad, but is there a GUI in VS that handles this?
To disable a TypeScript rule for a specific line, we can use the @ts-ignore comment. to add the // @ts-ignore: Unreachable code error comment so that the TypeScript compiler ignores the unreachable code error in the line after the comment.
TypeScript supportBy default, Visual Studio 2022 provides language support for JavaScript and TypeScript files to power IntelliSense without any specific project configuration. For compiling TypeScript, Visual Studio gives you the flexibility to choose which version of TypeScript to use on a per-project basis.
I removed TypeScript by hand.
Unload project
Edit {project-name}.csproj
TypeScript
in it, and save the XML fileReload project
Always keep a backup of the project file, as you may wreck it. Your millage may vary...
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