multi-device-hybrid apps template is not loading after installing CTP2

混江龙づ霸主 提交于 2019-12-09 16:26:45

问题


I am getting an error message when I try to create a new multi-device-hybrid app. The error message is that, this template attempted to load component assembly

'Microsoft.VisualStudio.MultiDeviceHybridApps.VSTemplateWizard, Version=1.0.0.0, Culture=neutral'. 

And my output error message is :

C:\Users\Rishi\Desktop\Winjs Files\WinJS ToDo Sample for Multi-Device Hybrid Apps\JavaScript\WinJSToDo\WinJSToDo.jsproj : error  : The imported project "C:\Users\Rishi\AppData\Roaming\npm\node_modules\vs-mda-targets\Microsoft.MDA.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.  C:\Users\Rishi\Desktop\Winjs Files\WinJS ToDo Sample for Multi-Device Hybrid Apps\JavaScript\WinJSToDo\WinJSToDo.jsproj

回答1:


I encountered this, along with several other errors after a fresh install of CTP2. For me it seemed that the installation process did not create a few specific directories for some reason, or for some reason it installed them in the wrong directory.

My solution was to create a copy of the 'vs-mda' & 'vs-mda-targets' directories, to get the entire build process to work (see below).

C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\uxbwjkun.gjn\packages* ==> C:\Users\YOUR-USER-NAME\AppData\Roaming\npm\node_modules\

Once I had done this, I could open, and start building the new projects created by CTP2.

I did have a few other build errors relating to various node packages that were also missing, which I simply installed as I discovered them using 'npm install -g ' from the command prompt.



来源:https://stackoverflow.com/questions/25302269/multi-device-hybrid-apps-template-is-not-loading-after-installing-ctp2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!