Skip to content

chore: upgrade SDK to .NET 8 - #34

Merged
deleteLater merged 2 commits into
mainfrom
chore/upgrade-to-dotnet-8
Aug 24, 2026
Merged

deleteLater merged 2 commits into
mainfrom
chore/upgrade-to-dotnet-8

Conversation

@deleteLater

@deleteLater deleteLater commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • replace the .NET 6 SDK target, tests, and examples with .NET 8
  • remove the unsupported .NET Core 3.1 target and its compatibility code
  • use the Source Link support built into the .NET 8 SDK
  • update package metadata and supported-version documentation

Validation

  • dotnet build FeatBit.ServerSdk.sln -c Release
  • dotnet test FeatBit.ServerSdk.sln -c Release --no-build --no-restore --verbosity minimal (180 passed, 1 skipped)
  • dotnet pack src/FeatBit.ServerSdk/FeatBit.ServerSdk.csproj -c Release --no-build --no-restore
  • git diff --check

Summary by CodeRabbit

  • New Features

    • Added support for .NET 8 and later across the SDK and sample applications.
    • Enabled repository URL publishing for the SDK package.
  • Improvements

    • Updated JSON serialization for consistent .NET 8 web defaults.
    • Simplified runtime compatibility handling and refreshed related framework integrations.
    • Updated examples, tests, and documentation for the .NET 8 SDK and API references.

Greptile Summary

The PR upgrades the SDK, tests, and examples to .NET 8 while retaining the .NET Standard and .NET Framework targets.

  • Removes the unsupported .NET Core 3.1 target and compatibility branches.
  • Uses the .NET 8 SDK’s built-in Source Link support and updates package metadata.
  • Updates framework-specific dependencies and supported-version documentation.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
src/FeatBit.ServerSdk/FeatBit.ServerSdk.csproj Replaces the .NET Core 3.1 and .NET 6 targets with .NET 8, updates System.Text.Json, and adopts SDK-provided Source Link support.
src/FeatBit.ServerSdk/Json/ReusableJsonSerializerOptions.cs Removes the obsolete .NET Core 3.1 serializer branch and makes the intentionally static utility explicit.
src/FeatBit.ServerSdk/DataSynchronizer/DataSet.cs Removes the obsolete fallback and consistently uses JsonElement deserialization.
src/FeatBit.ServerSdk/Events/DefaultEventSender.cs Simplifies runtime-specific HTTP handler selection after dropping .NET Core 3.1.
src/FeatBit.ServerSdk/Model/FeatureFlag.cs Removes the .NET Core 3.1-only parameterless deserialization constructor.
src/FeatBit.ServerSdk/Model/Segment.cs Removes the .NET Core 3.1-only parameterless deserialization constructor.

Reviews (2): Last reviewed commit: "chore: point package project URL to Feat..." | Re-trigger Greptile

@coderabbitai

coderabbitai Bot commented Aug 24, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

Next included review available in 48 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: ea59d231-a4fe-47d5-936d-92fc8ed5b561

📥 Commits

Reviewing files that changed from the base of the PR and between 7904f82 and d7627e4.

📒 Files selected for processing (1)
  • src/FeatBit.ServerSdk/FeatBit.ServerSdk.csproj

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 7d4261d2-f070-4160-a436-fbe5fefbd797

📥 Commits

Reviewing files that changed from the base of the PR and between 27346dd and 7904f82.

📒 Files selected for processing (12)
  • README.md
  • examples/ConsoleApp/ConsoleApp.csproj
  • examples/WebApiApp/WebApiApp.csproj
  • global.json
  • src/FeatBit.ServerSdk/DataSynchronizer/DataSet.cs
  • src/FeatBit.ServerSdk/Events/DefaultEventSender.cs
  • src/FeatBit.ServerSdk/FeatBit.ServerSdk.csproj
  • src/FeatBit.ServerSdk/Json/ReusableJsonSerializerOptions.cs
  • src/FeatBit.ServerSdk/Model/FeatureFlag.cs
  • src/FeatBit.ServerSdk/Model/Segment.cs
  • tests/FeatBit.ServerSdk.Tests/FeatBit.ServerSdk.Tests.csproj
  • tests/FeatBit.ServerSdk.Tests/UriTests.cs

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The SDK and related projects now target .NET 8. Legacy .NET Core 3.1 compatibility paths were removed from serialization, HTTP handling, and model construction. Documentation and test dependencies were updated accordingly.

Changes

.NET 8 migration

Layer / File(s) Summary
Update runtime targets and project configuration
global.json, src/FeatBit.ServerSdk/FeatBit.ServerSdk.csproj, examples/*.csproj, tests/FeatBit.ServerSdk.Tests/FeatBit.ServerSdk.Tests.csproj, README.md
Projects and the SDK configuration now target .NET 8. Dependencies, repository metadata, and supported-runtime documentation were updated.
Remove legacy runtime compatibility paths
src/FeatBit.ServerSdk/Json/ReusableJsonSerializerOptions.cs, src/FeatBit.ServerSdk/DataSynchronizer/DataSet.cs, src/FeatBit.ServerSdk/Events/DefaultEventSender.cs
Serialization uses shared web defaults, DataSet uses JsonElement.Deserialize, and SocketsHttpHandler no longer has a .NET 6 conditional branch.
Align models and validation with .NET 8
src/FeatBit.ServerSdk/Model/*.cs, tests/FeatBit.ServerSdk.Tests/UriTests.cs
The legacy parameterless Segment constructor was removed. Test documentation now links to the .NET 8 API reference.

Estimated code review effort: 2 (Simple) | ~15 minutes

Merge Risk: ⚪ Minimal · up to 7904f

The SDK upgrade and related project, example, test, and packaging changes are supported by successful validation; the remaining timeout integration check is optional follow-up rather than evidence of a production defect. No actionable merge-blocking risk remains after normal review.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: upgrading the SDK to .NET 8.
Docstring Coverage ✅ Passed Docstring check was indeterminate for this PR — some files could not be analyzed in time. Not blocking.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/upgrade-to-dotnet-8

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Comment thread src/FeatBit.ServerSdk/Json/ReusableJsonSerializerOptions.cs

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Upgrades the SDK, tests, and examples from .NET 6/.NET Core 3.1 to .NET 8 while retaining supported legacy targets.

Changes:

  • Updates target frameworks, SDK pinning, dependencies, and examples.
  • Removes obsolete compatibility code and refreshes serialization behavior.
  • Updates Source Link metadata and supported-version documentation.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Review summary
tests/FeatBit.ServerSdk.Tests/UriTests.cs Updates the .NET documentation link.
tests/FeatBit.ServerSdk.Tests/FeatBit.ServerSdk.Tests.csproj Retargets tests and updates testing dependencies.
src/FeatBit.ServerSdk/Model/Segment.cs Removes the obsolete .NET Core 3.1 constructor.
src/FeatBit.ServerSdk/Model/FeatureFlag.cs Removes the obsolete .NET Core 3.1 constructor.
src/FeatBit.ServerSdk/Json/ReusableJsonSerializerOptions.cs Removes legacy configuration, but changing the public type to static causes a moderate source-compatibility break; retain the class declaration.
src/FeatBit.ServerSdk/FeatBit.ServerSdk.csproj Updates target frameworks, package metadata, and Source Link configuration.
src/FeatBit.ServerSdk/Events/DefaultEventSender.cs Simplifies runtime-specific handler selection.
src/FeatBit.ServerSdk/DataSynchronizer/DataSet.cs Removes the legacy deserialization fallback.
README.md Updates supported framework documentation.
global.json Pins the .NET 8 SDK.
examples/WebApiApp/WebApiApp.csproj Retargets the Web API example to .NET 8.
examples/ConsoleApp/ConsoleApp.csproj Retargets the console example to .NET 8.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/FeatBit.ServerSdk/Json/ReusableJsonSerializerOptions.cs
@deleteLater
deleteLater merged commit 35c6e73 into main Aug 24, 2026
3 checks passed
@deleteLater
deleteLater deleted the chore/upgrade-to-dotnet-8 branch August 24, 2026 08:58
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