[英]Package 'Microsoft.AspNet.WebApi.Core 5.2.7' was restored using '.NETFFramework,Version=v4.6.1'
When i build my solution i am getting below warning message.All my project are created with ""Microsoft.AspNetCore.Cors" Version="2.2.0". My web API build with "" 当我构建解决方案时,我收到以下警告消息。我的所有项目都使用““ Microsoft.AspNetCore.Cors” Version =“ 2.2.0”创建。我的Web API使用“”构建
Package 'Microsoft.AspNet.WebApi.Core 5.2.7' was restored using '.NETFFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.2'. This package may not be fullay compatible with your project.
what's wrong here? 怎么了
As discussed in this post , Packages targeting asp.net core being with Microsoft.AspNetCore. 如本博文所述,使用Microsoft.AspNetCore打包针对asp.net核心的软件包。 What you're adding is a package for previous versions of WebApi, and whilst it has Core in its name it's not for the Core platform. 您要添加的是以前版本的WebApi的程序包,尽管它的名称为Core,但不适用于Core平台。
There's no specific WebApi package for ASP.NET Core any more, it's all built into Microsoft.AspNetCore.* packages( MVC and the .App or .All package) . 不再有针对ASP.NET Core的特定WebApi软件包,它们都内置于Microsoft.AspNetCore。*软件包(MVC和.App或.All软件包)中。 And this repo does produce one compatible package -- Microsoft.AspNet.WebApi.Client . 这个仓库确实产生了一个兼容的软件包-Microsoft.AspNet.WebApi.Client 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.