giacomelli / GeneticSharp

GeneticSharp is a fast, extensible, multi-platform and multithreading C# Genetic Algorithm library that simplifies the development of applications using Genetic Algorithms (GAs).
MIT License
1.26k stars 330 forks source link

Unity and NuGet package is still at version 2.6.0 at in release 3.0.0 and later #113

Open Niels-NTG opened 10 months ago

Niels-NTG commented 10 months ago

Describe the bug The GeneticSharp.unitypackage file included in the releases for 3.0.0, 3.1.2 and 3.1.4 are identical to release version 2.6.0. Likewise the latest version listed on NuGet is still 2.6.0.

To Reproduce Go to the releases page, download the GeneticSharp.unitypackage included in 3.1.4. When importing this package in a Unity project that already has Genetic Sharp 2.6.0, Unity will show a dialog that this package is already present. When adding the package to an empty project, inspecting the DLL in an editor such Rider it shows the version number 2.6.0.

Expected behavior I expect that the assets included on the releases for 3.0.0 and later are of the version indicated. Likewise I expect the available versions on NuGet to include the latest release.

Niels-NTG commented 10 months ago

Ah, I now understand this is due UnityNuGet using a curated list of NuGet packages, which excludes GeneticSharp 3.0.0 and later "since as of that version it only targets .NET 6.0" (source: https://github.com/xoofx/UnityNuGet/pull/148).

I'm no .NET expert, but is GeneticSharp v3 targeting .NET 6.0 an issue for Unity? Or does that apply only to certain older versions of Unity?