Angular 2 beta 13 with Visual Studio 2015 2 update / compile

After installing Update 2, saving the TS file is no longer compiled. I can make it rebuild, a simple build does not work.

I tried changing Tools> Options> Text Editor> TypeScript> Project> General> Automatically compile TypeScript files that are not part of the project for checking and unchecking - no difference.

Thoughts?

+4
source share
1 answer

Download and install the latest TypeScript for Visual Studio 2015.

tsconfig.json , "compileOnSave": true. , . (compileOnSave TypeScript 8.4 .)

:

{
  "compileOnSave": true,
  "compilerOptions": {
    "module": "system",
    "noImplicitAny": true,
    "preserveConstEnums": true,
    "removeComments": true,
    "sourceMap": true,
    "target": "es5"
  },
  "exclude": [
    "node_modules",
    "wwwroot/lib",
    "typings/main",
    "typings/main.d.ts"
  ]
}
+5

All Articles