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

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

问题描述

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

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

<代码>无法计算表达式 """.Substring(0, 6)".索引和长度必须引用字符串中的某个位置.参数名称:长度C:USERSMEAppDataRoaming pm ode_modulesvs-mda-targetsMicrosoft.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:USERSMEAppDataRoaming pm ode_modulesvs-mda-targetsMicrosoft.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:UsersYOUR-USER-NAMEAppDataRoaming pm ode_modules
如果没有,您可以手动删除这些文件夹.

Check to see if this removed the vs-mda and vs-mda-targets folders under
C:UsersYOUR-USER-NAMEAppDataRoaming pm ode_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"&'vs-mda-targets' 从 Visual Studio 的扩展文件夹下重新开始工作.

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.0Common7IDEExtensionsuxbwjkun.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.0Common7IDEExtensionsuxbwjkun.gjn*packages
Here you will find two folders "vs-mda" and "vs-mda-targets"

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

现在从这里运行 npm -g install <当前文件夹的完整路径>vs-mdanpm -g install <当前文件夹的完整路径>vs-mda-目标

Now from here run npm -g install <full path to current folder>vs-mda and npm -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天全站免登陆