How to remove Typescript support from Visual Studio project?

后端 未结 4 1718
隐瞒了意图╮
隐瞒了意图╮ 2021-02-18 12:50

Adding TypeScript support in latest version of VS is easy - just add a TypeScript file and VS will automatically will reconfigure the project.

However when all TS files

相关标签:
4条回答
  • 2021-02-18 13:19

    I removed TypeScript by hand.

    1. Right-click on the Web-project file in the Solution Explorer and choose Unload project
    2. Right-click again on the project file, and now choose Edit {project-name}.csproj
    3. Remove all elements with the name TypeScript in it, and save the XML file
    4. Right-click the project file, and choose Reload project

    Always keep a backup of the project file, as you may wreck it. Your millage may vary...

    0 讨论(0)
  • 2021-02-18 13:25

    There isn't UI for this.

    0 讨论(0)
  • 2021-02-18 13:26

    In the .csproj file commenting the entire line with Microsoft.TypeScript.targets is enough to disable the build.

    0 讨论(0)
  • 2021-02-18 13:40

    Another approach is to use TypeScriptCompileBlocked tag under PropertyGroup tag of csproject file.

    Yes in order to edit the csproj you need to open it in notepad or any other editor. This property is not editable through visual studio.

    <PropertyGroup>
        <TypeScriptCompileBlocked>True</TypeScriptCompileBlocked>
    </PropertyGroup>
    

    This wont require you to remove any other typescript tag.

    0 讨论(0)
提交回复
热议问题