TypeScript“Compile on save”功能在Visual Studio 2015中不工作 [英] TypeScript "Compile on save" feature not working in Visual Studio 2015
问题描述
编译保存功能在升级到Visual Studio 2015后不适用于我。当我对项目中的 .ts
文件进行更改时保存,IDE底部的状态栏说明输出成功生成
,但生成的 .js
The "Compile on save" feature isn't working for me after upgrading to Visual Studio 2015. When I make a change to a .ts
file in my project and save, the status bar at the bottom of the IDE says Output(s) generated successfully
, but the generated .js
file doesn't change.
这是我尝试过的:
-
向我的
.csproj
中的根< Project>
添加以下内容:
adding the following to the root
<Project>
element in my.csproj
:
<PropertyGroup>
<TypeScriptCompileOnSaveEnabled>True</TypeScriptCompileOnSaveEnabled>
</PropertyGroup>
检查和取消选中自动编译不属于项目一部分的TypeScript文件选项在工具 - >选项 - > TypeScript - >项目
:
双重检查以确保在我的项目的TypeScript Build属性中选中Compile on save:
double checking to make sure "Compile on save" is checked in my project's TypeScript Build properties:
我缺少什么?
注意,TypeScript编译步骤在正常构建触发时会按预期工作。
As a side note, the TypeScript compilation step does work as expected when triggered by a regular build.
推荐答案
此问题似乎已解决 TypeScript Language Services
扩展的最新更新。
This issue seems to have been resolved with the most recent update to the TypeScript Language Services
extension.
这篇关于TypeScript“Compile on save”功能在Visual Studio 2015中不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!