问题描述
更新NuGet类型脚本包后,我遇到了一个常见的构建错误问题使用代码1退出了tsc.exe".搜索后,我找到了解决方案.根据建议,我安装了另外两个名为Microsoft.TypeScript.Compiler和Microsoft.TypeScript.MSBuild的NuGet程序包.安装这些文件后,tsc.exe退出,代码为1,问题已解决.但是与此同时,在构建未知的编译器选项'listemittedfiles'"时出现了一个新问题.
我试图通过此 Typescript构建失败的建议来解决该问题.
但是这个问题仍然没有改善.
任何人都可以提供解决方案吗?请提前多谢.
我的客户项目结构看起来像图像请单击此处查看图像
我建议您尝试使用以下链接安装 TypeScript 2.0.6 来解决此问题:
- Visual Studio 2015 TypeScript工具(2.0 .6在撰写本文时)
这还将使MSBuild指向正确的TypeScript构建,该构建完全支持--listEmittedFiles
命令开关.
另请参见此答案和/或此博客文章我在该主题上写过有关此问题的更多详细信息和参考. >
After updating the NuGet Type Scripts packages, I was facing with one common build error problem "tsc.exe exited with code 1". After searching I have found the solution how to resolve it. As suggested I installed another two NuGet packages named Microsoft.TypeScript.Compiler and Microsoft.TypeScript.MSBuild. After installing those the tsc.exe exited with code 1 problem solved. But in the mean time a new problem arise on build "Unknown compiler option 'listemittedfiles'".
I was trying to solve it by the suggestion of this Typescript build failure.
But still there has no improvement of this problem.
Can anyone be able to provide a solution please? Please take a lots of thanks in advance.
My client project structure is looks like the image Please click here to view the image
I suggest you to try to fix this issue by installing TypeScript 2.0.6 using the following link:
- Visual Studio 2015 TypeScript Tools (2.0.6 at the time of writing)
This will also point MSBuild to the proper TypeScript build, which fully supports the --listEmittedFiles
command switch.
See also this answer and/or this blog article I wrote on this topic for further details and references about this issue.
这篇关于如何解决"Build:Unknown编译器选项'listemittedfiles'."在Visual Studio 2015 Update 3上吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!