我收到错误消息"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

查看:61
本文介绍了我收到错误消息"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 已移至

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天全站免登陆