.Net 6 Upgrade/.NetStandard 2.0/2.1 Upgrade

172 Views Asked by At

I am trying to upgrade one of my .net framework app to .net 6 and it uses one of the web api project from a common solution. The web api project(c# class lib) in the common solution is .net fw 4.8 and is giving few errors as shown below which I am unable to find a fix for.

enter image description here

I have tried using nuget packages

Microsoft.AspNetCore.Mvc
Microsoft.AspNet.WebAPi.Core
Microsoft.AspNet.WebAPi.Client

It builds but some packages show the yellow exclamation when expanded under dependencies and the message states: Package Microsoft.AspNet.WebAPi.Core 5.2.9 was restored using .net frmaework, version (they mention all version from 4.6 to 4.81) instead of the project traget framework .NetStandard,Version=v2.1'. This package may not be fully compatible with your project.

0

There are 0 best solutions below