DNX SDK版本'dnx-clr-win-x86.1.0.0-beta8-15530'安装失败 [英] DNX SDK version 'dnx-clr-win-x86.1.0.0-beta8-15530' failed to install
问题描述
我克隆了一个基于ASP.NET 5 Mvc 6 Beta 8的存储库.Visual Studio无法安装最新的DNX SDK.
I cloned a repository based on ASP.NET 5 Mvc 6 Beta 8. Visual Studio could not install the latest DNX SDK.
这是错误消息:"DNX SDK版本'dnx-clr-win-x86.1.0.0-beta8-15530'安装失败.该解决方案将为此会话使用DNX SDK版本'dnx-clr-win-x86.1.0.0-beta7'
This is the error message: "DNX SDK version 'dnx-clr-win-x86.1.0.0-beta8-15530' failed to install. The solution will use DNX SDK version 'dnx-clr-win-x86.1.0.0-beta7' for this session.
我尝试运行dnvm升级,但是它说我已经拥有最新版本.
I tried to run dnvm upgrade but it said I already have the latest version.
这是存储库: https://github.com/Kukkimonsuta/Odachi/tree/master/src/Odachi.Security.BasicAuthentication (这是用于实施基本身份验证的中间件的示例).
This is the repository: https://github.com/Kukkimonsuta/Odachi/tree/master/src/Odachi.Security.BasicAuthentication (It is a sample for Middleware implementing basic authentication).
此代码是否有可能使用dnvm尚不可用的一些beta版本?
Is it possible that this code uses some beta build which is not yet available for the dnvm?
更新
C:\Windows\system32>dnvm upgrade -u
Determining latest version
Downloading dnx-clr-win-x86.1.0.0-rc1-15798 from https://www.myget.org/F/aspnetvnext/api/v2
Installing to C:\Users\mjost\.dnx\runtimes\dnx-clr-win-x86.1.0.0-rc1-15798
Adding C:\Users\mjost\.dnx\runtimes\dnx-clr-win-x86.1.0.0-rc1-15798\bin to process PATH
Adding C:\Users\mjost\.dnx\runtimes\dnx-clr-win-x86.1.0.0-rc1-15798\bin to user PATH
Updating alias 'default' to 'dnx-clr-win-x86.1.0.0-rc1-15798'
似乎没有执行预期的操作.在执行 dnvm upgrade -u
Does not seem to do what is expected. I got the same error message when I open the solution after executing dnvm upgrade -u
它仍然无法编译.如何安装所需的确切dnx?
更新我更新到稳定的Beta 8,仍然出现错误.我在原始的Github存储库中发布了一个问题: https://github.com/Kukkimonsuta/Odachi/issues/4
Update I updated to the stable beta 8 and still got errors. I posted an issue in the original Github repository: https://github.com/Kukkimonsuta/Odachi/issues/4
推荐答案
DNVM使用 aspnetdev
作为不稳定的提要,该提要现在包含RC1版本,而稳定的NuGet提要包含beta7版本.您可以将提要临时设置为 aspnetrelease
,然后运行升级:
DNVM uses aspnetdev
as unstable feed which contains RC1 builds now and the stable NuGet feed contains beta7 builds. You can set the feed to aspnetrelease
temporarily and then run the upgrade:
SET DNX_FEED=https://www.myget.org/F/aspnetrelease/
dnvm upgrade
这将安装 v1.0.0-beta8-15794
.
更新:另一个选择是删除 sdk
)元素./github.com/Kukkimonsuta/Odachi/blob/master/global.json"rel =" nofollow> global.json .使用此选项,您可以强制.NET根据您不需要的运行时构建应用程序.如果未指定,它将根据当前的活动运行时进行构建.
Update: another option would be to remove the version
(and the sdk
) element of the global.json. With this option you force .NET to build your app against the specified runtime, which you don't want. If you don't specify it, it will build against the current active runtime.
这篇关于DNX SDK版本'dnx-clr-win-x86.1.0.0-beta8-15530'安装失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!