Cannot compile TypeScript files in Visual Studio 2012

前端 未结 7 1168
长发绾君心
长发绾君心 2020-12-29 08:45

I downloaded and installed TypeScript extension for VS 2012, I got my first sample compiles by manually dragging the ts file onto the tsc.exe file! because

7条回答
  •  隐瞒了意图╮
    2020-12-29 09:24

    If you change a .js file into a .ts file, you can go to the properties panel in Visual Studio and change the Build Action to TypeScriptCompile. This is what is missing when you change a file. This can save you from deleting and re-adding files.

提交回复
热议问题