Team,
we have an existing .Net application which is using owin. now we are upgrading to .Net core. But i am getting messages like
Severity Code Description Project File Line Suppression State
Warning NU1701 Package 'Microsoft.Owin 4.2.2' was restored using '.NETFramework,Version=v4.6.1,
.NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1,
.NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1'
instead of the project target framework 'net6.0'.
This package may not be fully compatible with your project.TokenAuthenticationWEBAPI TokenAuthenticationWEBAPI.csproj 1
Could you please confirm the alternative package for .Net core for the below packages
Microsoft.Owin.Host.SystemWeb
Microsoft.Owin.Security.OAuth
Microsoft.Owin.Cors
Thanks.
Jayraj ChhayaPosted Feb 21, 2024, 12:09 PM
During the migration from Owin to .Net Core, you can replace the existing Owin packages with their equivalent .Net Core counterparts. Here are the alternative packages for the ones mentioned:
Microsoft.AspNetCore.Owinfor middleware integration.Microsoft.AspNetCore.Authentication.OAuthpackage.Microsoft.AspNetCore.Corsfor CORS support in your .Net Core application.By updating your project to use these .Net Core packages, you can ensure compatibility and seamless migration to the latest framework version.
PrasanthPosted Feb 22, 2024, 6:55 AM
Hi Jayraj,
Thanks for your help. Those issues got resolved now. I have encountered other issues with the below packages. It would be helpful if you could let me know the alternative packages for the below:
Microsoft.Owin.Security;
Microsoft.Practices.EnterpriseLibrary.Data
Microsoft.IdentityModel.Tokens
System.IdentityModel.Tokens.Jwt
Microsoft.Owin.Security;
Microsoft.Owin.Security.DataHandler.Encoder;
Microsoft.Owin
Thanks in advance.