自从我安装了VS2013 Update 4的Cordova Tools以来,我就可以解决这个问题。搜索深入并尝试许多解决方案,没有人能奏效。周围也有相同的帖子,但此时是一条没有路的小巷。
安装后的第一刻,我找不到Apache Cordova模板。然后我尝试了SO的解决方案,现在我可以看到它们:
与任何人(我首先尝试使用Blank App)在Visual Studio创建项目时,总是收到相同的错误消息:
找不到导入的项目“ 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
(我为可能正在寻找相同错误的人写了消息)
在研究中,我终于明白了Tools / Options / Tools for Apache Cordova
,然后得到了:
'AutoLoadPackagePackage'软件包未正确加载。
该问题可能是由于配置更改或安装其他扩展程序引起的。您可以通过检查文件AppData \ Roaming \ Microsoft \ VisualStudio \ 12.0 \ ActivityLog.xml来获取更多信息。
这些是该文件中该错误的条目:
<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>
我还更新了nodeJS,我知道VS和NodeJS之间存在问题
我在这里没有解决这个问题的想法。任何想法都将考虑,即使不能作为答案,也请对此发表评论!
如果您需要更新,请发表评论,我会很乐意提供任何信息,就像某个文件夹中缺少任何文件一样。
提前感谢
无法在Visual Studio 2013中创建Apache Cordova项目。针对Visual Studio的
Cordova多设备混合应用程序(预览)| 无法加载项目
Visual Studio /多设备混合应用程序CTP / Cordova-
在Visual Studio 2013中为Apache Cordova CTP3.0安装Visual Studio工具时未找到导入的项目错误
Visual Studio Apache Cordova生成错误-找不到模块
似乎您已经安装了多个版本的VS Cordova工具。我建议卸载所有以前的工具版本,然后重新开始。您可以从此处安装VS 2015 RC工具。感谢您使用我们的工具。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句