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