Build error MSB600 "tsc.exe" exited with code 2 Build error MSB600 "tsc.exe" exited with code 2 typescript typescript

Build error MSB600 "tsc.exe" exited with code 2


There may be multiple reasons behind this error. The problem is VS does not show exact error returned by TypeScript compiler.

I wrote a blog post that explains small trick to get detailed error message, I hope it will be useful for someone: http://the-coderok.azurewebsites.net/2016/07/13/Resolve-the-Error-MSB6006-tsc-exe-exited-with-code-2-build-error-in-Visual-Studio-2015/


If you are having problems with ASP.NET Core xproj compilation and don't have any .ts file, you could disable Typescript compilation modifying .xproj file and adding:

<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>

Inside the first

<PropertyGroup>    <TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>    ...</PropertyGroup> 


After updating TypescriptToolsVersion to 1.8

 <TypeScriptToolsVersion>1.8</TypeScriptToolsVersion>