我收到错误“Microsoft.AspNetCore.Hosting.Abstractions, Version=3.1.0.0";在 .NET Core 3.1 应用程序中 [英] I'm getting the error "Microsoft.AspNetCore.Hosting.Abstractions, Version=3.1.0.0" in .NET Core 3.1 app

查看:21
本文介绍了我收到错误“Microsoft.AspNetCore.Hosting.Abstractions, Version=3.1.0.0";在 .NET Core 3.1 应用程序中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最新版本的Microsoft.AspNetCore.Hosting.Abstractions"是 2.2.0,所以我不确定它从哪里得到 3.1.0.0.

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.

我已经浏览了我所有的 .csproj 文件,所有这些文件都引用了 2.2.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.

我有 3 个不同的应用程序(解决方案)来共享项目,而且这在不同时间发生在所有应用程序上.如果我从 VS 发布它,其中一个可以工作,但我想尝试使用 Azure DevOps 发布管道部署它们.

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.

推荐答案

Nuget 包 Microsoft.AspNetCore.Hosting.Abstractions 已移至 Microsoft.Extensions.Hosting.Abstractions对于 2.x 及更高版本,所有 3.x 版本以及 5.x 版本都在那里.2.x 版本很可能作为兼容包或类似包留在旧的 nuget 包中.

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.

这篇关于我收到错误“Microsoft.AspNetCore.Hosting.Abstractions, Version=3.1.0.0";在 .NET Core 3.1 应用程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆