Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
558 views
in Technique[技术] by (71.8m points)

installation - Cordova Multi-Device Hybrid Apps (Preview) for Visual Studio | Can't load project

I've installed the CTP Multi-Device Hybrid Apps for VS 2013.2

There's no project template for hybrid apps and when i open a example project i get this error:

D:DownloadsWinJS ToDo Sample for Multi-Device Hybrid AppsJavaScriptWinJSToDoWinJSToDo.jsproj : error  : The imported project "C:Userskevin.martinsAppDataRoaming
pm
ode_modulesvs-mda-targetsMicrosoft.MDA.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.  D:DownloadsWinJS ToDo Sample for Multi-Device Hybrid AppsJavaScriptWinJSToDoWinJSToDo.jsproj
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

This is an odd situation and should generally not occur. It seems the VSIX file got copied over but was not installed correctly.

Here's the work around (run using an administrative command prompt):

"C:Program Files (x86)Microsoft Visual Studio 12.0Common7IDEVSIXInstaller.exe" /admin /uninstall:MultiDeviceHybridApps..db151788-9b27-49db-a5e2-d25a2653eb83

This removed the broken entries for the VSIX from the previous failed attempt to install. Following this, issue another command:

"C:Program Files (x86)Microsoft Visual Studio 12.0Common7IDEVSIXInstaller.exe" "%localappdata%MicrosoftMultiDeviceHybridAppsMicrosoft.VisualStudio.MultiDeviceHybridApps.vsix" /admin

At this point, the VSIX should be installed successfully and the templates will become available in Visual Studio.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...