Solving error - tsc.exe exit code 1

835 views Asked by At

I am following VISUAL STUDIO 2015 QUICKSTART. I have done everything as described in the guide and location of external tools is ./node_modules/.bin and $(PATH) but at build time I get tcs.exe exit code: enter image description here

2

There are 2 answers

4
Sanket On

Add this line in VisualStudio 2015 Update 3 .csproj file-

<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.Default.props" Condition="Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.Default.props')" />

See if this helps.

0
Mayank Jain On

I was also getting the same issue after installing the latest version of Typescript for Visual studio 2015 from https://www.microsoft.com/en-us/download/details.aspx?id=48593

and clean the solution and run it worked for me.

I am using Visual studio 2015 Update 3.