在Visual Studio 2013中禁用打印稿编译 [英] Disable typescript compilation in Visual Studio 2013

查看:123
本文介绍了在Visual Studio 2013中禁用打印稿编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行grunt,并设置了一个打印脚本构建过程来侦听文件更改,因此当我保存或构建我的项目时,我不需要默认的VS编译脚本文件。



在我的项目属性中,我没有选中typescript下的'Compile on save'选项,但是ts文件仍在编译中。这对我来说唯一的方法是如果我将单个TS文件的构建操作设置为无,但这仍然会导致一些Typescript文件被编译。有什么办法可以在VS2013中完成?

解决方案

在VS2015中,< TypeScriptCompileBlocked> true< / TypeScriptCompileBlocked> 设置可以添加到.csproj中的第一个< PropertyGroup> 元素

msbuild输出应该显示

  PreComputeCompileTypeScript:
由于设置了TypeScriptCompileBlocked属性,因此TypeScript编译会被跳过为真。

发件人: files-in-visual-studio-2015 /

I am running grunt and have set up a typescript build process that listens for file changes, therefore I don't need the default VS compilation of my typescript files when I save or build my project.

I have unchecked the 'Compile on save' option under typescript in my project properties, but the ts files are still being compiled. The only way this works for me is if I set the build action of individual TS files to 'None', but this is still causing some Typescript files to be compiled. Is there any way this can be done in VS2013?

解决方案

In VS2015, a <TypeScriptCompileBlocked>true</TypeScriptCompileBlocked> setting can be added to the first <PropertyGroup> element in .csproj

msbuild output should then show

PreComputeCompileTypeScript:
  TypeScript compile is skipped because the TypeScriptCompileBlocked property is set to true.

From: http://rostacik.net/2015/08/14/how-to-disable-building-of-typescript-files-in-visual-studio-2015/

这篇关于在Visual Studio 2013中禁用打印稿编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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