无法创建新项目(VS2013和多混合设备应用程序)

编程入门 行业动态 更新时间:2024-10-10 23:15:58
本文介绍了无法创建新项目(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-mda和npm -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-mda和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和多混合设备应用程序)

本文发布于:2023-11-08 06:21:56,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1568583.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   新项目   混合设备

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!