无法创建新项目(VS2013和多混合设备应用程序) [英] Cannot create new project (VS2013 and multi-hybrid device app)

查看:101
本文介绍了无法创建新项目(VS2013和多混合设备应用程序)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试创建一个新项目时,出现以下错误.我已经升级到CTP2. 错误:

I get the error below when I try to create a new project. I've upgraded to CTP2. Error:

The expression """.Substring(0, 6)" cannot be evaluated. Index and length must refer to a location within the string. Paramter name: length C:\USERS\ME\AppData\Roaming\npm\node_modules\vs-mda-targets\Microsoft.MDA.targets

The expression """.Substring(0, 6)" cannot be evaluated. Index and length must refer to a location within the string. Paramter name: length C:\USERS\ME\AppData\Roaming\npm\node_modules\vs-mda-targets\Microsoft.MDA.targets

发生此错误并检查解决方案文件夹时,尚未创建任何项目.

When this error occurs and I check the solution folder, no project has been created.

推荐答案

在VS关闭的情况下,在命令窗口中运行
npm -g uninstall vs-mdanpm -g uninstall vs-mda-targets

With VS closed, in a command window, run
npm -g uninstall vs-mda and npm -g uninstall vs-mda-targets

检查是否删除了
下的vs-mda和vs-mda-targets文件夹 C:\Users\YOUR-USER-NAME\AppData\Roaming\npm\node_modules\
如果没有,您可以手动删除这些文件夹.

Check to see if this removed the vs-mda and vs-mda-targets folders under
C:\Users\YOUR-USER-NAME\AppData\Roaming\npm\node_modules\
If it didn't, you can delete those folders manually.

然后重新启动VS并创建一个MDHA项目.它应该可以成功工作.

Then relaunch VS and create an MDHA project. It should work successfully.

如果在创建项目时遇到错误,指出未找到MDA目标,则可以手动安装'vs-mda'&从Visual Studio的扩展名"文件夹下单击"vs-mda-targets",即可使工作再次正常进行.

If you get an error on project creation saying that the MDA targets were not found, you can manually install 'vs-mda' & 'vs-mda-targets' from under Visual Studio's Extension folder to get things working again.

退出Visual Studio并在安装Visual Studio的驱动器上,导航到
%Program Files%\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\uxbwjkun.gjn*\packages
在这里,您将找到两个文件夹"vs-mda"和"vs-mda-targets"

Exit Visual Studio and on the drive where Visual Studio is installed, navigate to
%Program Files%\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\uxbwjkun.gjn*\packages
Here you will find two folders "vs-mda" and "vs-mda-targets"

  • 请注意,uxbwjkun.gjn并不是确切的文件夹名称,而是查找包含packages文件夹的类似文件.

现在从这里运行npm -g install <full path to current folder>\vs-mdanpm -g install <full path to current folder>\vs-mda-targets

发出此命令时,有必要在%Program Files%中的VS安装下为其提供vs-mda和vs-mda-targets文件夹的显式路径.

When issuing this command it's necessary to give it the explicit path to the vs-mda and vs-mda-targets folders under the VS installation in %Program Files%.

重新启动并创建一个新的MDHA项目.

Relaunch and create a new MDHA project.

这篇关于无法创建新项目(VS2013和多混合设备应用程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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