且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 Visual Studio 2015 中修复 DNX/DNVM?

更新时间:2023-11-08 11:34:40

这是一个已知问题.

ASP.NET 5:在 Windows 7 SP1 上,没有 DNX SDK 无法安装Powershell 3.0.

ASP.NET 5: On Windows 7 SP1, DNX SDK cannot be installed without Powershell 3.0.

症状

当您创建 ASP.NET 5 项目时,您会收到以下错误消息:

When you create an ASP.NET 5 project, you receive the following error message:

DNX SDK 版本dnx-clr-win-x86.1.0.0-beta5"安装失败.这解决方案将使用 DNX SDK 版本dnx-clr-win-x86-1.0.0-beta5"本期

DNX SDK version 'dnx-clr-win-x86.1.0.0-beta5' failed to install. The solution will use DNX SDK version 'dnx-clr-win-x86-1.0.0-beta5' for this session

解决方法

要解决此问题,请安装 Windows Powershell 3.0(或更高版本)并再次尝试创建项目.要查看您当前的 PS 版本,请运行 $PsVersionTable 命令(详细信息).

To work around this issue, install Windows Powershell 3.0 (or higher) and try to create the project again. To see your current PS version, run $PsVersionTable command (details).

链接: