Using TypeScript in an existing Visual Studio Web Site project

前端 未结 8 2217
南旧
南旧 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:04

    Since there's no project file, you may have to revert to "manually" running the TypeScript compiler.

    Open a Visual Studio Command Prompt (Start -> Programs -> Microsoft Visual Studio 20xx -> Visual Studio Tools -> Developer Command Prompt).

    Run: tsc your_input_file.ts --target ES5

    To supply multiple .ts files, use a text file with the @args_file_name parameter.

    When you get tired of that, put it all in a batch file.

    When you get tired of using a batch file, convert your app to a Web Application and alter the .proj file as per Sohnee's answer.

提交回复
热议问题