Use specific TypeScript compiler version in Visual Studio

前端 未结 4 570
灰色年华
灰色年华 2020-12-11 00:50

I wonder if there\'s a way to set specific TypeScript compiler version for project in Visual Studio. So I could configure a project to always use version 1.0, even if new ve

4条回答
  •  余生分开走
    2020-12-11 01:10

    Visual Studio Version -> VS2013

    1. Install Typescript 1.8 -> https://visualstudiogallery.msdn.microsoft.com/9d0e9172-244a-4943-94e5-bd24dffd9536
    2. Open the folder location of your project e.g. Right click on your project > Open Folder in File Explorer
    3. Find and open the project file via text editor e.g. WebApplication1.csproj
    4. Find the "TypeScriptToolsVersion" tag under the "PropertyGroup" element and use 1.8. Like so,
      
      ......
        
        1.8
      
    

提交回复
热议问题