Typescript compile on save with Visual Studio 2013? Typescript compile on save with Visual Studio 2013? typescript typescript

Typescript compile on save with Visual Studio 2013?


This solved the problem for me:

  1. Go to Options under the Tools menu.
  2. Expand options for Text Editor
  3. Expand options for TypeScript
  4. Expand options for Project
  5. Check “Automatically compile TypeScript file which are not part of the project”


I had the following situation: the project was created using vs2012 and an earlier version of typescript. I upgraded to VS2013 and the latest version of typescript (0.9.1.1) and scripts were not compiled on save.

I then excluded the typescript file from my project and added it again using Add existing file. After that the typescript file compiles fine on save!!


TypeScript 0.9.5 compile on save stopped working for me on an existing project after I upgraded to Web Essentials 1.85 (Feb 14). I reinstalled both to no avail but after seeing it work for new projects I tried changing this line in my csproj, from this;

<Project ToolsVersion="4.0" />

to

<Project ToolsVersion="12.0"/>

And magically, compile on save started working again.