I'm getting the error “Microsoft.AspNetCore.Hosting.Abstractions, Version=3.1.0.0” in .NET Core 3.1 app

痞子三分冷 提交于 2021-02-11 14:46:19

问题


The latest version of "Microsoft.AspNetCore.Hosting.Abstractions" is 2.2.0, so I'm not sure where it's getting 3.1.0.0.

I've gone through all of my .csproj files, and all of them are referencing 2.2.0. I'm not sure where else to look.

I have 3 different applications (solutions) that share projects, and this is happening on all of them at different times. One of them works if I publish it from VS, but I'd like to try to get them deployed using Azure DevOps release pipeline.


回答1:


The Nuget package Microsoft.AspNetCore.Hosting.Abstractions has moved to Microsoft.Extensions.Hosting.Abstractions for versions 2.x and above, all 3.x versions are there, as well as 5.x versions. the 2.x version is most likely left in the old nuget package as a compatibility package or similar.



来源:https://stackoverflow.com/questions/65064208/im-getting-the-error-microsoft-aspnetcore-hosting-abstractions-version-3-1-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!