保存 TypeScript 文件后 Unbale 在 JS 文件中生成更改 [英] Unbale to generate changes in JS file after saving TypeScript file

查看:30
本文介绍了保存 TypeScript 文件后 Unbale 在 JS 文件中生成更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Visual Studio 2012 以及 TypeScript 0.9.5 和 Web Essential 3.5.在我对 TypeScript 文件进行更改并保存之后.更改不会保存在 JavaScript 文件中.我在 VS 2012 中浏览了工具 > 选项 > Web Essentials > TypeScript,但发现选项已更改.早些时候我使用 TS 0.8.1 和 WebEssentials 2.8 并且一切正常.

I am using Visual Studio 2012 along with TypeScript 0.9.5 and Web Essential 3.5. After I make changes in TypeScript file and save it. The changes are not saved in JavaScript file. I navigated through Tools > Options > Web Essentials > TypeScript in VS 2012 but found the options have changed. Earlier I was using TS 0.8.1 and WebEssentials 2.8 and everything was working.

请提供您的建议.

推荐答案

只需一个指向 Tim LaBonne 博客的链接,他概述了项目文件所需的更改以支持保存时编译".

Just a link through to Tim LaBonne's blog where he outlines the changes needed to the project file to support Compile on Save.

http://www.timlabonne.com/2013/07/getting-compile-on-save-to-work-for-typescript-in-vs2012/

您还应该更新到最新的 Web Essentials(在发布问题时为 3.6.5 版).

You should also update to the latest Web Essentials ( version 3.6.5 as at time of question posted ).

这篇关于保存 TypeScript 文件后 Unbale 在 JS 文件中生成更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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