打字稿编译时使用 Visual Studio 2013 保存? [英] Typescript compile on save with Visual Studio 2013?
本文介绍了打字稿编译时使用 Visual Studio 2013 保存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我无法在 VS2013 上使用 Compile-on-Save.我安装了 VS2013,重新安装了 TS 0.9.0.1,在工具"、选项"、Typescript/项目/常规下,我检查了两个保存时编译"选项.但是,当我向我的项目中添加一个新的 TS 文件,然后对其进行编辑并保存时,更改不会反映在关联的 .js 文件中.
我做错了吗?其他人有这个问题吗?
解决方案
这个为我解决了这个问题:
<块引用>- 转到工具"菜单下的选项".
- 扩展文本编辑器的选项
- 扩展 TypeScript 的选项
- 扩展项目选项
- 勾选自动编译不属于项目的 TypeScript 文件"
I can't get Compile-on-Save to work with VS2013. I installed VS2013, reinstalled TS 0.9.0.1, and under "Tools", "Options", Typescript/Project/General, I've checked both of the "Compile on save" options. But when I add a new TS file to my project, and then edit it and save it, the changes aren't reflected in the associated .js file.
Am I doing something wrong? Is anybody else having this problem?
解决方案
This solved the problem for me:
- Go to Options under the Tools menu.
- Expand options for Text Editor
- Expand options for TypeScript
- Expand options for Project
- Check "Automatically compile TypeScript file which are not part of the project"
这篇关于打字稿编译时使用 Visual Studio 2013 保存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文