Cannot compile TypeScript files in Visual Studio 2012

前端 未结 7 1209
长发绾君心
长发绾君心 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:33

    You have to ensure that the BuildAction must be TypeScriptCompile for your .ts files. I've added these lines to end of the (.csproj) project file. (Before closing Project tag) And It seems working.

     
    ES3
    true
    true
    AMD
     
    
    ES3
    false
    false
    AMD
    
     
    

提交回复
热议问题