安装CTP2后未加载多设备混合应用程序模板 [英] multi-device-hybrid apps template is not loading after installing CTP2

查看:75
本文介绍了安装CTP2后未加载多设备混合应用程序模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试创建新的多设备混合应用程序时收到错误消息.错误消息是,此模板尝试加载组件装配

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

我的输出错误消息是:

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

推荐答案

在全新安装CTP2之后,我遇到了这个问题以及其他一些错误.对我来说,安装过程似乎由于某种原因未创建一些特定目录,或者由于某种原因将其安装在错误的目录中.

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.

我的解决方案是创建'vs-mda'& "vs-mda-targets"目录,以使整个构建过程正常工作(见下文).

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 \您的用户名\ AppData \ Roaming \ npm \ node_modules \

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\

完成此操作后,我就可以打开并开始构建由CTP2创建的新项目.

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

我确实还遇到了一些与遗漏的各种节点程序包相关的其他构建错误,我只是在命令提示符下使用'npm install -g'发现了这些错误后便进行了安装.

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.

这篇关于安装CTP2后未加载多设备混合应用程序模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆