如何从Visual Studio项目中删除Typescript支持? [英] How to remove Typescript support from Visual Studio project?

查看:247
本文介绍了如何从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.

  1. 在解决方案资源管理器中右键单击Web项目文件,然后选择Unload project
  2. 再次右键单击项目文件,然后选择Edit {project-name}.csproj
  3. 删除所有名称为TypeScript的元素,并保存XML文件
  4. 右键单击项目文件,然后选择Reload project
  1. Right-click on the Web-project file in the Solution Explorer and choose Unload project
  2. Right-click again on the project file, and now choose Edit {project-name}.csproj
  3. Remove all elements with the name TypeScript in it, and save the XML file
  4. Right-click the project file, and choose Reload project

请务必保留项目文件的备份,因为您可能会破坏它.您的年龄可能会有所不同...

这篇关于如何从Visual Studio项目中删除Typescript支持?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆