简体   繁体   English

带有Visual Studio 2015社区版的Apache Cordova工具

[英]Apache Cordova Tools with Visual Studio 2015 Community Edition

I am totally new to Apache Cordova tools with VS 2015. I just tried to create basic initial project, added nothing more and trying to build it, but it fails everytime. 我对VS 2015的Apache Cordova工具完全陌生。我只是尝试创建基本的初始项目,仅添加其他内容并尝试构建它,但是每次都失败。

For the specific error I get, I performed all the steps mentioned at: Configuring Apache Cordova with VS2015 . 对于我得到的特定错误,我执行了以下步骤中提到的所有步骤: 使用VS2015配置Apache Cordova

I am not able to get rid of this error and run the most basic project. 我无法摆脱这个错误,无法运行最基本的项目。

Here is my sample code: https://1drv.ms/f/s!ApUTYQW5TdbIgzrPGeUkxWVmmy0Z 这是我的示例代码: https : //1drv.ms/f/s!ApUTYQW5TdbIgzrPGeUkxWVmmy0Z

<code>在此处输入图片描述</ code>

I ran into this problem and was able to solve it using the solution here: https://stackoverflow.com/a/31688018/4045156 我遇到了这个问题,并能够使用以下解决方案解决它: https : //stackoverflow.com/a/31688018/4045156

The solution is for a slightly different problem, but in my case it did resolve it. 解决方案是针对一个稍有不同的问题,但就我而言,它确实解决了该问题。 :) :)

EDIT: here's the solution from that post: 编辑:这是该帖子的解决方案:

Close all VS instances 关闭所有VS实例

cd %appdata%\\"..\\Local\\Microsoft\\Phone Tools" cd%appdata%\\“ .. \\ Local \\ Microsoft \\ Phone Tools”

rename CoreCon folder to something else 将CoreCon文件夹重命名为其他名称

Launch VS again. 再次启动VS。

As mentioned in the official link - configure VS tools for Apache Cordova which you are following, 如官方链接中所述- 您要遵循的Apache Cordova配置VS工具

If you see unexpected errors when trying to build the Blank App template after installing Visual Studio Tools for Apache Cordova, you can try clearing your cache and reinstalling the Cordova CLI pre-processor, vs-tac, on your PC.Typically, this is only necessary if you try to build a Cordova app and see the error Cannot find module [modulename]. 如果在安装适用于Apache Cordova的Visual Studio工具后尝试构建Blank App模板时看到意外错误,则可以尝试清除缓存并在PC上重新安装Cordova CLI预处理程序vs-tac。如果您尝试构建Cordova应用程序并看到错误“找不到模块[modulename]”,则为必填项。

For other errors, you may have to look at workarounds link . 对于其他错误,您可能必须查看解决方法link

According to me, clearing cache should resolve the issue or this issue would have got introduced in latest version of Visual Studio once again. 据我说,清除缓存应该可以解决该问题,否则该问题将再次在最新版本的Visual Studio中引入。

I also suggest you to look at the following SO posts which should help you out in this issue. 我还建议您查看以下SO帖子,这些帖子应该对您有所帮助。

  1. VS dont work with TACO VS不与TACO合作
  2. Error with cordova using VS 使用VS的Cordova错误

Hope this helps. 希望这可以帮助。 Cheers. 干杯。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM