自从我安装了VS2013 Update 4的Cordova Tools以来,我就解决了这个问题。深入研究并尝试许多解决方案,没有人能奏效。周围也有相同的帖子,但此时是一条没有路的小巷。
安装后的第一刻,我找不到Apache Cordova模板。然后我尝试了SO的解决方案,现在我可以看到它们了:
与任何人一起使用(我首先尝试使用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
(I wrote the message for someone that maybe is looking for the same error)
In my research, I finally get to Tools / Options / Tools for Apache Cordova
and then I get this:
The 'AutoLoadPackagePackage' package did not load correctly.
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'
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
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
Unable to create Apache Cordova project in Visual Studio 2013
Cordova Multi-Device Hybrid Apps (Preview) for Visual Studio | Can't load project
Visual Studio/Multi Device Hybrid Apps CTP / Cordova - The imported project was not found
Error when installing Visual Studio Tools for Apache Cordova CTP3.0 in Visual Studio 2013
Visual Studio Apache Cordova Build Error - cannot find module
似乎您已安装了多个版本的VS Cordova工具。我建议卸载所有以前的工具版本,然后重新开始。您可以从此处安装VS 2015 RC工具。感谢您使用我们的工具。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句