如何从Visual Studio项目中删除Typescript支持? [英] How to remove Typescript support from Visual Studio project?
本文介绍了如何从Visual Studio项目中删除Typescript支持?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在最新版本的VS中添加TypeScript支持很容易-只需添加一个TypeScript文件,VS就会自动重新配置该项目.
Adding TypeScript support in latest version of VS is easy - just add a TypeScript file and VS will automatically will reconfigure the project.
但是,当所有TS文件都消失时,它会发出以下警告:
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.
可以通过在记事本中编辑项目文件来手动删除TypeScript支持,但是VS中是否有GUI可以处理此问题?
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?
推荐答案
我手动删除了TypeScript.
I removed TypeScript by hand.
- 在解决方案资源管理器中右键单击Web项目文件,然后选择
Unload project
- 再次右键单击项目文件,然后选择
Edit {project-name}.csproj
- 删除所有名称为
TypeScript
的元素,并保存XML文件 - 右键单击项目文件,然后选择
Reload project
- Right-click on the Web-project file in the Solution Explorer and choose
Unload project
- Right-click again on the project file, and now choose
Edit {project-name}.csproj
- Remove all elements with the name
TypeScript
in it, and save the XML file - Right-click the project file, and choose
Reload project
请务必保留项目文件的备份,因为您可能会破坏它.您的年龄可能会有所不同...
这篇关于如何从Visual Studio项目中删除Typescript支持?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文