升级到 ASP.NET Core 1.0.1 9 月更新警告
Upgrading to ASP.NET Core 1.0.1 September update warning
升级到ASP.NET Core 1.0.1
貌似很简单
Download .NET Core Installer 1.0.1
更新project.json
"Microsoft.AspNetCore.Mvc": "1.0.*",
和
"Microsoft.AspNetCore.Server.Kestrel": "1.0.1",
但是在对以上行进行更改后我收到警告
Warning NU1012 Dependency conflict. Project.Web 1.0.0 expected Microsoft.AspNetCore.Server.Kestrel >= 1.0.1 but received 1.0.0 Project.Web
Warning NU1007 Dependency specified was Microsoft.AspNetCore.Server.Kestrel >= 1.0.1 but ended up with Microsoft.AspNetCore.Server.Kestrel 1.0.0.
然后我决定宁愿使用 Nuget 包管理器并通过它更新包。
但是 MVC 升级失败,“Microsoft.AspNetCore.Mvc”保持 v1.0.0
"Microsoft.AspNetCore.Mvc": "1.0.0"
"Microsoft.AspNetCore.Server.Kestrel": "1.0.1",
如果我将文件中的“Microsoft.AspNetCore.Mvc”设置为 1.0.1,我会收到以下警告
Warning NU1012 Dependency conflict. Project.Web 1.0.0 expected Microsoft.AspNetCore.Mvc >= 1.0.1 but received 1.0.0
Warning NU1007 Dependency specified was Microsoft.AspNetCore.Mvc >= 1.0.1 but ended up with Microsoft.AspNetCore.Mvc 1.0.0.
为什么 Nuget 包管理器选择 1.0.1 但升级失败?
为什么会出现这些警告?
我通过右键单击 'project.json' 并选择更改顺序的排序属性解决了这个问题。看来顺序很重要。
ASP.NET Core 1.0.1
貌似很简单
Download .NET Core Installer 1.0.1
更新project.json
"Microsoft.AspNetCore.Mvc": "1.0.*",
和
"Microsoft.AspNetCore.Server.Kestrel": "1.0.1",
但是在对以上行进行更改后我收到警告
Warning NU1012 Dependency conflict. Project.Web 1.0.0 expected Microsoft.AspNetCore.Server.Kestrel >= 1.0.1 but received 1.0.0 Project.Web
Warning NU1007 Dependency specified was Microsoft.AspNetCore.Server.Kestrel >= 1.0.1 but ended up with Microsoft.AspNetCore.Server.Kestrel 1.0.0.
然后我决定宁愿使用 Nuget 包管理器并通过它更新包。
但是 MVC 升级失败,“Microsoft.AspNetCore.Mvc”保持 v1.0.0
"Microsoft.AspNetCore.Mvc": "1.0.0"
"Microsoft.AspNetCore.Server.Kestrel": "1.0.1",
如果我将文件中的“Microsoft.AspNetCore.Mvc”设置为 1.0.1,我会收到以下警告
Warning NU1012 Dependency conflict. Project.Web 1.0.0 expected Microsoft.AspNetCore.Mvc >= 1.0.1 but received 1.0.0
Warning NU1007 Dependency specified was Microsoft.AspNetCore.Mvc >= 1.0.1 but ended up with Microsoft.AspNetCore.Mvc 1.0.0.
为什么 Nuget 包管理器选择 1.0.1 但升级失败?
为什么会出现这些警告?
我通过右键单击 'project.json' 并选择更改顺序的排序属性解决了这个问题。看来顺序很重要。