Skip to content
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

Upgrade to .NET SDK 8.0 #276

Merged
merged 4 commits into from
Nov 28, 2023
Merged

Upgrade to .NET SDK 8.0 #276

merged 4 commits into from
Nov 28, 2023

Conversation

jskeet
Copy link
Contributor

@jskeet jskeet commented Nov 15, 2023

I was originally intending not to actually target net8.0 in the nuget package itself, but given that it gets rid of the System.Memory dependency and it's much simpler in terms of not having to exclude it, I think this is the way to go.

No behavioral changes in this PR, except for some potentially pathological cases (where the new behavior is better).

This is one step towards #272.

This commit:

- Adds a global.json file to declare the required SDK version
- Updates CI to install both .NET 6 and .NET 8
- Updates the test projects to test with both .NET 6 and .NET 8

Signed-off-by: Jon Skeet <[email protected]>
This commit *just* adds .NET 8 to the target framework list, in all packages. The code will not build at this point, due to nullability checking. That will be fixed in a later commit, but separating the two makes it easier to review.

Later we may well decided to *build* a .NET 8 target, but not pack it - unless we see concrete benefits from doing so over letting .NET 8 use the existing netstandard2.1 target.

Signed-off-by: Jon Skeet <[email protected]>
@jskeet jskeet merged commit 47a95c2 into cloudevents:main Nov 28, 2023
2 checks passed
@jskeet jskeet deleted the net8.0 branch November 28, 2023 15:35
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.

2 participants