Farshad Momtaz Farshad Momtaz - 1 year ago 213
TypeScript Question

"tsc.exe" exited with code 1 when using ASP.net 4 MVC

I'm following the tutorial on TypeScript website to add TypeScript and Angular 2 to my ASP.net MVC project. The tutorial from Typescript website can be found here.

I have followed the tutorial point by point; however I keep getting the following error at the end:

"tsc.exe" exited with code 1.

The project works perfectly up to adding Angular 2.

I have tried installing Microsoft.TypeScript.MSBuild and Microsoft.TypeScript.Compiler as they were suggested here. However that didn't fix the problem.

Any ideas on how to fix this problem?

Answer Source

I resolved the build issue in VisualStudio 2015 Update 3 by adding

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

to the visual studio .csproj file.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download