Using TypeScript in an existing Visual Studio Web Site project

前端 未结 8 2220
南旧
南旧 2020-11-29 06:16

I\'ve got an existing Visual Studio project that was setup as a \"Web Site\" project. You can create projects like this by going to File->New Web Site. This is a different

8条回答
  •  感情败类
    2020-11-29 07:03

    Check if your .ts files in properties are associated with TypeScriptCompiler.

    Keep in mind that opening a .ts file in VS into so called virtual project is not the same as having a reference to file in VS web project. First one will not let you set build action on it. While another one will.

    PS. Get Web Essentials VS add-on to get transformations on file save, texteditor ts/js split and built-in minimizer.

    Edit: Yeah, I didn't notice there is no such build action available with other projects at start... But hey, I pushed Sohne into right direction.

提交回复
热议问题