Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"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?

like image 385
Farshad Momtaz Avatar asked Jul 27 '16 23:07

Farshad Momtaz


1 Answers

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.

like image 181
Developer Wonk Avatar answered Sep 28 '22 07:09

Developer Wonk