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
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