I have provide support for ApiController with the Microsoft.AspNetCore.Mvc.WebApiCompatShim(1.0.3) package in .Net core 1.0.
Currently, I upgrading the project to .Net core 2.0 from 1.0. At the same time, I upgraded the Microsoft.AspNetCore.Mvc.WebApiCompatShim package to 2.0.0 version.
The following changes are done in .csproj when migrating .Net core 2.0 from 1.0.
- Changed the TargetFramework version.
- Renaming the AssetTargetFallback from PackageTargetFallback.
But, I am getting the following warnings for Microsoft.AspNetCore.Mvc.WebApiCompatShim(2.0.0) when restoring.
Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
How to solve this.