有没有一种方法可以在构建时停止VS2015 Typescript编译? [英] Is there a way to stop VS2015 Typescript compilation on build?
问题描述
我正在运行一个Asp.Net Core RC2,project.json项目,并已设置gulp来监视并将我的打字稿编译到其他位置.但是,Visual Studio 2015还在每次编译时都编译打字稿,这给了我每个js文件的副本.如何阻止VS编译我的打字稿文件.
I'm running a Asp.Net Core RC2, project.json project and have setup gulp to watch and compile my typescript to a different location. But Visual Studio 2015 is also compiling the typescript each time I compile, giving me duplicates of each js file. How do I stop VS from compiling my typescript files.
我已在我的 tsconfig.json
中禁用了保存时的编译功能,但是在构建时没有禁用它的选项.
I have disabled compile on save in my tsconfig.json
, but there seams to be no options for disabled it on build.
{"compileOnSave":false}
推荐答案
在RC2中,您可以通过将 TypeScriptCompileBlocked 添加到.xproj文件中来禁用它.
In RC2, you can disable it by adding TypeScriptCompileBlocked to the .xproj file.
<PropertyGroup>
<TypeScriptCompileBlocked>True</TypeScriptCompileBlocked>
</PropertyGroup>
这篇关于有没有一种方法可以在构建时停止VS2015 Typescript编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!