2015-04-03 137 views
2

通过VS2013创建新的Cordova工具模板的空白项目并建立中断,并给出以下消息。错误:TypeScript编译器没有被编译的文件

Warning 1 Acquiring Cordova Tools. Any build cancellation requests will be processed after acquisition has completed. BlankCordovaApp2

Warning 2 The TypeScript Compiler was given no files for compilation, so it will skip compiling. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\TypeScript\Microsoft.TypeScript.targets 95 5 BlankCordovaApp2

我试图运行修复安装,也删除vs和再次安装,但没有用。

解决方案是什么?

+1

可能是重复的:打字稿编译器没有给予编译的文件](http://stackoverflow.com/questions/26116936/the-typescript-compiler-was-given-no-files-for-compilation) – mins 2015-04-03 17:31:34

回答

0

对于警告#2,您的科尔多瓦应用程序实际上不可能有任何TypeScript文件 - 模板不应该有TypeScript,并且您可能不会编写任何TypeScript。所以将它视为仅供参考,它不影响您的构建。

0

要修复此警告,您可以删除.csproj文件中的<Import Project="$(VSToolsPath)\TypeScript\Microsoft.TypeScript.targets" />行(在这种情况下,它可能是.jsproj btw)。你可以在你最喜欢的文本编辑器中打开它。

,如果你打算使用打字稿Offcourse您可以随时添加回。

有没有看到一个警告过,但我想它消失后,下载所有的第一次?

+0

感谢你的重播,但问题仍然存在 – 2015-04-04 13:19:43

0

工具>选项>项目和解决方案>生成和运行>设置MSBuild项目生成输出的详细程度=诊断

现在你可以看到为什么/它崩溃

0

我也有过这样的错误,我固定现在,当我检查我的系统环境变量,

System Properties -> Advanced -> environment variables -> Path 

PS:路径太长,所以我编辑短