Reputation: 2008
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?
Upvotes: 26
Views: 16155
Reputation: 662
Another approach is to use TypeScriptCompileBlocked tag under PropertyGroup tag of csproject file.
Yes in order to edit the csproj you need to open it in notepad or any other editor. This property is not editable through visual studio.
<PropertyGroup>
<TypeScriptCompileBlocked>True</TypeScriptCompileBlocked>
</PropertyGroup>
This wont require you to remove any other typescript tag.
Upvotes: 2
Reputation: 1189
In the .csproj file commenting the entire line with Microsoft.TypeScript.targets is enough to disable the build.
Upvotes: 2
Reputation: 19288
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...
Upvotes: 38