totpero / DeviceDetector.NET

The Universal Device Detection library will parse any User Agent and detect the browser, operating system, device used (desktop, tablet, mobile, tv, cars, console, etc.), brand and model.
Apache License 2.0
343 stars 73 forks source link

Package DeviceDetector.NET.NetCore 3.9.2.2 is not compatible with net60 (.NETFramework,Version=v6.0) #73

Closed Tusharsp closed 1 year ago

Tusharsp commented 1 year ago

We are trying to build the code using Azure CI CD but build pipeline is failing with below error.

[error]The nuget command failed with exit code(1) and error(NU1202: Package DeviceDetector.NET.NetCore 3.9.2.2 is not compatible with net60 (.NETFramework,Version=v6.0). Package DeviceDetector.NET.NetCore 3.9.2.2 supports: netcoreapp2.0 (.NETCoreApp,Version=v2.0)

Any idea if there is any latest version which supports .NET 6.0?

totpero commented 1 year ago

Hi @Tusharsp, I will add also .net6 compatibility and I will create new release

Tusharsp commented 1 year ago

Hi @totpero -- I see you have mentioned that new release will be created but I also see a "wontfix" label. Kindly confirm if this will get fixed. We really need it to work.

totpero commented 1 year ago

Hi @Tusharsp , The nuget you have mentioned "DeviceDetector.NET.NetCore" is not from this official repo. Try to install this one: DeviceDetector.NET. I also add new target frameworks and I will create new release after I update to the last 6.1.4 version.

totpero commented 1 year ago

Hi @Tusharsp , I just create new release with 6.1.4 version. In this version I also add netstandard2.0;Net462;net5.0;net6.0;net7.0 targets frameworks. You can update to the last nuget version to see if fix your problem.

Tusharsp commented 1 year ago

Thank you for the quick action. We will check if we can move from DeviceDetector.NET.NetCore to DeviceDetector.NET. Please note that I commented here because in Nuget page of DeviceDetector.NET.NetCore, the "Project Website" link directs to this page.

Thanks again. It will take some time for us to get approval to change to this package. Let me know if I should close this issue.

totpero commented 1 year ago

DeviceDetector.NET.NetCore is fork from old version of this repo. Now DeviceDetector.NET is also compatible with .net core versions. Thanks for using this library, I will close this issue and if you have other issues or this issue still persist feel free to reopen. 👍