DNX SDK版本’dnx-clr-win-x86.1.0.0-beta8-15530’无法安装
我克隆了一个基于ASP.NET 5 Mvc 6 Beta 8的存储库.Visual Studio无法安装最新的DNX SDK。
这是错误消息:“DNX SDK版本’dnx-clr-win-x86.1.0.0-beta8-15530’无法安装。解决方案将使用DNX SDK版本’dnx-clr-win-x86.1.0.0 -beta7’为本次会议。
我试图运行dnvm升级,但它说我已经有了最新版本。
这是存储库: https : //github.com/Kukkimonsuta/Odachi/tree/master/src/Odachi.Security.BasicAuthentication (这是实现基本身份validation的中间件的示例)。
此代码是否可能使用某些尚未用于dnvm的beta版本?
更新
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
后打开解决方案时,我收到了相同的错误消息
它仍然无法编译。 如何安装所需的精确dnx?
更新我更新到稳定的测试版8但仍然有错误。 我在原始Github存储库中发布了一个问题: https : //github.com/Kukkimonsuta/Odachi/issues/4
DNVM使用aspnetdev
作为不稳定的feed,现在包含RC1版本,稳定的NuGet feed包含beta7版本。 您可以暂时将feed设置为aspnetrelease
,然后运行升级:
SET DNX_FEED=https://www.myget.org/F/aspnetrelease/ dnvm upgrade
这将安装v1.0.0-beta8-15794
。
更新:另一个选项是删除global.json的version
(和sdk
)元素。 使用此选项,您可以强制.NET针对您不需要的指定运行时构建应用程序。 如果不指定它,它将针对当前活动运行时构建。
如果你想使用beta8位,那么你必须运行dnvm upgrade -u
(-u表示不稳定;也称为dev feed)
- NLog没有写入事件日志.NET Core 2.1
- 如何在Web API ASP NET 5中路由外部类库
- 升级到ASP.NET Core 2.0后,无法从singleton IActiveUsersService使用作用域服务IMongoDbContext
- 如何将.xproj引用到.csproj?
- 修改CookieAuthenticationOptions LoginPath OnRedirectToReturnUrl事件
- ASP.NET Core HTTPRequestMessage返回奇怪的JSON消息
- 使用IConfigurationRoot将应用程序的连接字符串传递到ASP.NET 5中的存储库类库
- 从ASP.NET Core 1.1 MVC迁移到2.0后,自定义cookie身份validation无法正常工作
- 在.NET Core 1.1 csproj中引用.NET 4.5 dll?