Try reinstalling the NuGet package
From the package manager console, type:
Update-Package Microsoft.AspNet.WebApi.Core -reinstall
solved Dll issue in Aspnet Core
Try reinstalling the NuGet package
From the package manager console, type:
Update-Package Microsoft.AspNet.WebApi.Core -reinstall
solved Dll issue in Aspnet Core