Typescript disable compile on save in vs 2015 ctp 6

后端 未结 2 1659
谎友^
谎友^ 2021-02-14 05:31

I need to know how to disable compile on save for typescript files?

相关标签:
2条回答
  • 2021-02-14 05:56

    For loose files (outside of a project)

    Tools -> Options

    • Text Editor
      • TypeScript
        • Project

    [ ] Automatically compile TypeScript files which are not part of a project

    For projects

    Right-click the project -> Properties

    Select the "TypeScript Build" tab (on the left)

    Uncheck "Compile on save" under the "General" heading

    0 讨论(0)
  • 2021-02-14 06:13

    Typescript compilation is enabled by default. You can do next to disable it:

    1. Select and click 'Unload Project' menu item.
    2. Select unloaded project and click 'Edit .kproj'.
    3. Add new 'PropertyGroup' node to projects root node:
    <?xml version="1.0" encoding="utf-8"?>
    <Project ...>
    ...
    <PropertyGroup>
    <TypeScriptCompileOnSaveEnabled>False</TypeScriptCompileOnSaveEnabled>
    </PropertyGroup>
    </Project>
    
    0 讨论(0)
提交回复
热议问题