这个问题是关于过时的测试版,可能会被删除
在安装DNX beta7和用于Beta 7的ASP.NET Visual Studio工具后,在Visual Studio 2015中打开时,基于“ASP.NET 5预览模板”(现在称为ASP.NET Core)的小应用程序提供了以下内容错误:
---------------------------
Microsoft Visual Studio
---------------------------
Cannot find DNX SDK version 'dnx-clr-win-x86.1.0.0-beta6-12256' required by
your solution. Do you want to install it now? If you select No,
‘dnx-clr-win-x86.1.0.0-beta7’ will be used as the solution DNX SDK version
for this session.
---------------------------
Yes No
---------------------------
选择Yes会在DNVM输出窗格中导致以下消息框和以下错误输出:
---------------------------
Microsoft Visual Studio
---------------------------
DNX SDK version 'dnx-clr-win-x86.1.0.0-beta6-12256' failed to install.
The solution will use DNX SDK version ‘dnx-clr-win-x86.1.0.0-beta7’ for
this session.
---------------------------
OK
---------------------------
DNVM输出面板:
There are no runtimes matching the name dnx-clr-win-x86 on feed
https://www.nuget.org/api/v2.
At C:\Program Files\Microsoft DNX\Dnvm\dnvm.ps1:563 char:9
+ throw "There are no runtimes matching the name $RuntimeId on ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (There are no ru...get.org/api
/v2.:String) [], RuntimeException
+ FullyQualifiedErrorId : There are no runtimes matching the name dnx-clr-
win-x86 on feed https://www.nuget.org/api/v2.
There are no runtimes matching the name dnx-clr-win-x86 on feed
https://www.myget.org/F/aspnetvnext/api/v2.
At C:\Program Files\Microsoft DNX\Dnvm\dnvm.ps1:563 char:9
+ throw "There are no runtimes matching the name $RuntimeId on ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (There are no ru...etvnext/api
/v2.:String) [], RuntimeException
+ FullyQualifiedErrorId : There are no runtimes matching the name dnx-clr-
win-x86 on feed https://www.myget.org/F/aspnetvnext/api/v2.
有趣的是,当我运行dnvm
命令列出DNX运行时,从我的PowerShell中,它列出了1.0.0-beta5,beta6,beta7已安装并出现在我的c:\Users\USERNAME\.dnx\runtimes
文件夹中。
发生了什么以及如何解决这个问题?
答案 0 :(得分:2)
解决此问题(使用RC测试):
dnvm update-self
dnvm upgrade
参考:http://myonlineband.com/Help/Wiki/Computers/Programming/Solving-Missing-Default-DNX-Issues