简体   繁体   English

在Visual Studio中创建Apache Cordova项目时出错

[英]Error creating an Apache Cordova project in Visual Studio

Scenario: 场景:

I'm getting around with this issue since I installed Cordova Tools for VS2013 Update 4 . 自从我安装了VS2013 Update 4的Cordova Tools以来,我就可以解决这个问题。 Searching deeping and trying a lot of solutions, no one works. 深入研究并尝试许多解决方案,没有人能奏效。 There are the same posts around this but at this point is a no-way alley. 周围也有相同的帖子,但此时是一条没有路的小巷。

Problem: 问题:

At first moment after the installation, I couldn't found the Apache Cordova Templates. 安装后的第一刻,我找不到Apache Cordova模板。 Then I tried a solution from SO and now I can see them: 然后我尝试了SO的解决方案,现在我可以看到它们了:

可用项目

With anyone (I'm trying first with Blank App) I get always the same error message while Visual Studio creates the project: 与任何人(我首先尝试使用Blank App)在Visual Studio创建项目时,总是收到相同的错误消息:

主要错误

The imported project 'C:\\Program Files(x86)\\MSBuild\\Microsft\\VisualStudio\\v12.0\\Javascript\\Microsoft.VisualStudio.Javascript.Common.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. C:\\Program Files (x86\\MSBuild\\Microsoft\\VisualStudio\\v12.0\\CordovaTools\\vs-mda-targets\\Microsoft.MDA.targets 找不到导入的项目“ C:\\ Program Files(x86)\\ MSBuild \\ Microsft \\ VisualStudio \\ v12.0 \\ Javascript \\ Microsoft.VisualStudio.Javascript.Common.targets”。请确认声明中的路径正确,并C:\\ Program Files(x86 \\ MSBuild \\ Microsoft \\ VisualStudio \\ v12.0 \\ CordovaTools \\ vs-mda-targets \\ Microsoft.MDA.targets

(I wrote the message for someone that maybe is looking for the same error) (我为可能正在寻找相同错误的人写了消息)

Data: 数据:

In my research, I finally get to Tools / Options / Tools for Apache Cordova and then I get this: 在我的研究中,我终于找到Tools / Options / Tools for Apache Cordova ,然后得到了:

工具错误

The 'AutoLoadPackagePackage' package did not load correctly. 'AutoLoadPackagePackage'软件包未正确加载。
The problem may have been caused by a configuration change or by the installation of another extension. 该问题可能是由于配置更改或安装其他扩展程序引起的。 You can get more information by examining the file AppData\\Roaming\\Microsoft\\VisualStudio\\12.0\\ActivityLog.xml' 您可以通过检查文件AppData \\ Roaming \\ Microsoft \\ VisualStudio \\ 12.0 \\ ActivityLog.xml来获取更多信息。

and these are the entries for that error in that file: 这些是该文件中该错误的条目:

  <entry>
    <record>743</record>
    <time>2015/05/01 16:08:21.331</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>SetSite failed for package [AutoLoadPackagePackage]</description>
    <guid>{E0F14200-4DD7-4F1A-8F2B-DA3B91F8E889}</guid>
    <hr>80131604</hr>
    <errorinfo>Exception has been thrown by the target of an invocation.</errorinfo>
  </entry>
  <entry>
    <record>744</record>
    <time>2015/05/01 16:08:21.369</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>End package load [AutoLoadPackagePackage]</description>
    <guid>{E0F14200-4DD7-4F1A-8F2B-DA3B91F8E889}</guid>
    <hr>80131604</hr>
    <errorinfo>Exception has been thrown by the target of an invocation.</errorinfo>
  </entry>

I also update the nodeJS, I understand there is a issue between VS and NodeJS 我还更新了nodeJS,我知道VS和NodeJS之间存在问题

Question: 题:

I'm out of ideas here to solve this problem. 我在这里没有解决这个问题的想法。 Any idea will be consider, even if can or not be an answer, please comment it! 任何想法都将考虑,即使不能作为答案,也请对此发表评论!

If you need an update please comment, I'll glad give any information as if there any file missing in some folder. 如果您需要更新,请发表评论,我会很乐意提供任何信息,好像某个文件夹中缺少任何文件一样。

Thannks in advance 提前感谢

References: 参考文献:

Unable to create Apache Cordova project in Visual Studio 2013 无法在Visual Studio 2013中创建Apache Cordova项目
Cordova Multi-Device Hybrid Apps (Preview) for Visual Studio | 适用于Visual Studio的Cordova多设备混合应用程序(预览版)| Can't load project 无法加载项目
Visual Studio/Multi Device Hybrid Apps CTP / Cordova - The imported project was not found Visual Studio /多设备混合应用程序CTP / Cordova-找不到导入的项目
Error when installing Visual Studio Tools for Apache Cordova CTP3.0 in Visual Studio 2013 在Visual Studio 2013中为Apache Cordova CTP3.0安装Visual Studio工具时出错
Visual Studio Apache Cordova Build Error - cannot find module Visual Studio Apache Cordova构建错误-找不到模块

It seems like you have multiple versions of VS Cordova tools installed. 您似乎已安装了多个版本的VS Cordova工具。 I would recommend to uninstall all the previous versions of the tools and start afresh. 我建议卸载所有以前的工具版本,然后重新开始。 You can install VS 2015 RC Tools from here . 您可以从此处安装VS 2015 RC工具。 Thanks for using our tools. 感谢您使用我们的工具。

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

相关问题 如何在Visual Studio 2015 Enterprise中安装Apache Cordova扩展? - How to install Apache Cordova extension in Visual studio 2015 Enterprise? 创建单元测试时出现Visual Studio错误 - Visual Studio error while creating Unit Tests Visual Studio中的项目位置不受信任错误 - The Project Location is Not Trusted error in Visual Studio Visual Studio 2010 Web 部署项目错误 - Visual Studio 2010 Web Deployment Project Error 使用本地主机上的 sql 数据库在 Visual Studio 中为项目创建设置 - Creating a setup for a project in visual studio with a sql database on localhost 使用 Windows 窗体和 .NET Framework 在 Visual Studio 中创建项目 - Creating a project in Visual Studio with Windows Forms and the .NET Framework 使用Visual Studio建模项目创建C#事件 - Creating C# events with Visual Studio Modeling Project 创建已包含 Nuget Package 参考的 Visual Studio 项目模板? - Creating a Visual Studio Project Template that already includes a Nuget Package Reference? 创建Visual Studio模板-配置值取决于项目名称 - Creating Visual Studio Template - config values depend on project name Visual Studio项目备份 - Visual Studio Project Backup
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM