Cannot compile TypeScript files in Visual Studio 2012

前端 未结 7 1220
长发绾君心
长发绾君心 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条回答
  •  猫巷女王i
    2020-12-29 09:24

    I had a similar problem when I renamed my .js files to .ts. You have to right click and add a new TypeScript File to your project in order for your .csproj to recognize that the TypeScript compiler should be used on this .ts file.

    You will know it is correct when you see the arrow to expand the .ts file.

    enter image description here

提交回复
热议问题