I upgraded Visual Studio 2015 TypeScript extension to 1.7.6, then compile on save stopped working.

First I checked if “Compile on save” was enabled on my 4.5.2 web project properties (TypeScript Build tab):




Then I checked if “Automatically compile TypeScript file which are not part of a project” was enabled (Tools / Options).




Then the TypeScript files still would not compile on save (they were compiled, when the project was build, but not when a TypeScript file was saved.


The solution

I removed the following part in my Web.csproj file:


<PropertyGroup Condition="’$(Configuration)|$(Platform)’ == ‘Debug|AnyCPU’">
    <TypeScriptOutFile />
    <TypeScriptOutDir />
    <TypeScriptMapRoot />
    <TypeScriptSourceRoot />


Then I added a tsconfig.json file to the root of my project:




  "compilerOptions": {
    "noImplicitAny": true,
    "sourceMap": true,
    "target": "es5"




Don’t now if both steps are needed, but after that, my compile on save started working again.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related Posts

Map network drive in C#

// Create network drive mapping System.Diagnostics.Process.Start("net.exe", @"use K: ""\\my.server.com\Websites\Mail"" /user:MyDomain\admin…