"tsc.exe"使用ASP.net 4 MVC时以代码1退出 [英] "tsc.exe" exited with code 1 when using ASP.net 4 MVC
问题描述
我正在遵循TypeScript网站上的教程,将TypeScript和Angular 2添加到我的ASP.net MVC项目中.您可以在此处找到该Typescript网站上的教程.
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.
该项目完美地完成了Angular 2的添加.
The project works perfectly up to adding Angular 2.
我已尝试按照建议安装Microsoft.TypeScript.MSBuild和Microsoft.TypeScript.Compiler.
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?
推荐答案
我通过添加
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.Default.props" Condition="Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.Default.props')" />
到Visual Studio .csproj文件.
to the visual studio .csproj file.
这篇关于"tsc.exe"使用ASP.net 4 MVC时以代码1退出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!