I need to know how to disable compile on save for typescript files?
Fortunately, it's easy to disable automatic TypeScript compilation. Just add a “TypeScriptCompileBlocked” element to your project's xproj file and give it a value of “True”. This will prevent Visual Studio from making those pesky extra files.
Compiling TypeScript. TypeScript is a typed superset of JavaScript that transpiles to plain JavaScript. It offers classes, modules, and interfaces to help you build robust components.
Typescript compilation is enabled by default. You can do next to disable it:
<?xml version="1.0" encoding="utf-8"?>
<Project ...>
...
<PropertyGroup>
<TypeScriptCompileOnSaveEnabled>False</TypeScriptCompileOnSaveEnabled>
</PropertyGroup>
</Project>
Tools -> Options
[ ]
Automatically compile TypeScript files which are not part of a project
Right-click the project -> Properties
Select the "TypeScript Build" tab (on the left)
Uncheck "Compile on save" under the "General" heading
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With