问题
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