NickHugi / Kotor.NET

MIT License
3 stars 1 forks source link

Target .NET Standard for library code #5

Closed th3w1zard1 closed 10 months ago

th3w1zard1 commented 1 year ago

KotorDotNET currently targets NET7. This PR changes solely the library code to target .net standard 2.0.

It's my understanding for cross-platform support it's important to target .NET Standard at least in library code.

KOTOR is supported from operating systems as early as XP, but to get a nice middle ground of support on older/newer operating systems alike while ensuring cross-platform support across unix, I recommend .NET Standard 2.0 or 2.1.

Thoughts? This assumes you'd like to support older operating systems and hardware.

erri120 commented 10 months ago

Going with .NET Standard 2.0 will lock you out of a lot of new features. I'd follow the .NET guidelines for this, which is targeting the last LTS and last STS releases: https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core

Currently, those are .NET 6 (LTS) and .NET 7 (STS). The release of .NET 8 is coming soon, which will be the next LTS release.

NickHugi commented 10 months ago

Given that all versions of windows up to 8.1 are no longer recieving support or security updates from Microsoft, I'm inclined to just go with the latest version of .NET available. Doing so only really cuts out about 3% of users from running any programs made with Kotor.NET.