Visual Studio Tools for Apache Cordova Error

谁说我不能喝 提交于 2019-12-11 11:29:07

问题


I recently installed Visual Studio Tools for Apache Cordova CTP 3.1 in Visual Studio 2013 running on Windows 8.1. I receive the following error when I try to run a standard new Cordova project (in the Android Emulator or Device). The project is named MyCordova01:

OutPut Window show below message:

1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\TypeScript\Microsoft.TypeScript.targets(103,5): warning : The TypeScript Compiler was given no files for compilation, so it will skip compiling. 1> GeneratedJavascript= 1> c:\Users\Vijay.Agarwal\Documents\Visual Studio 2013\Projects\BlankCordovaApp1\BlankCordovaApp1>call "C:\Program Files (x86)\nodejs\"\nodevars.bat 1> Your environment has been set up for using Node.js 0.10.33 (ia32) and npm. 1> ------ Ensuring correct global installation of package from source package directory: C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\EXTENSIONS\L2TH1VSB.CIX\packages\vs-mda ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

And Error List showing 1 Warning

Warning 1 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 103 5 BlankCordovaApp8

Please help me how to resolved this error/problem.


回答1:


  1. the typescript is not an error, it happens when you create a JavaScript cordova project, if you create typescript cordova, this warning will disappear!

  2. usually our first try to this kind of build error is to clear the cordova cache via visual studio tools - options - tools for apache cordova, then rebuild the project.

make sure you have internet connection when you do step 2.



来源:https://stackoverflow.com/questions/30511808/visual-studio-tools-for-apache-cordova-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!