Skip to content

Update NuGet dotnet version to 6 and 8 and remove .netcoreapp2.0 #668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bethmaloney
Copy link
Contributor

@bethmaloney bethmaloney commented Mar 30, 2024

Update the NuGet package to provide libraries for .NET 6.0 and 8.0. Also removed .NET Core 2.0 as it went EOL in 2018 (almost 6 years ago).

build.ps1 runs locally and the generated nuget package contains the .NET 6/8 packages
image

I didn't add support for .NET 7.0 as it'll go EOL very soon (May this year). Let me know if you'd like to support it and I can add it in.

Adding later versions of .NET lets us use classes/functions such as Span or SearchValues and provides nullability annotation for the standard library.

and remove .netcoreapp2.0
@@ -25,7 +25,8 @@ public class BuildPaths
var artifactsBinDir = artifactsDir.Combine("bin");
var artifactsBinFullFx = artifactsBinDir.Combine("net461");
var artifactsBinNetStandard20 = artifactsBinDir.Combine("netstandard2.0");
var artifactsBinNetCoreapp2 = artifactsBinDir.Combine("netcoreapp2.0");
var artifactsBinNet60 = artifactsBinDir.Combine("netstandard6.0");
var artifactsBinNet80 = artifactsBinDir.Combine("netstandard8.0");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and above should be "net8.0" and "net6.0" respectively

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to make the change if there's interest in merging this PR. Only ask as it's 12 months old.

@oskarb
Copy link
Member

oskarb commented Jul 26, 2025

This makes sense to me. Except .Net 6 is now also expired so I guess there's no need to add that version at this point. Standard2 and .Net 8 should be appropriate for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants