Skip to content

Update bridge simple sample to NServiceBus 10 #7517

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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cquirosj
Copy link
Contributor

@cquirosj cquirosj commented Jul 18, 2025

  • Upgraded from .NET 9/8 multi-targeting to .NET 10 (net10.0)
  • Updated LangVersion from 12.0 to preview to support latest C# features
  • NServiceBus: 9.* → 10.0.0-alpha.1
  • NServiceBus.MessagingBridge: 3.* → 4.0.0-alpha.1
  • NServiceBus.Extensions.Hosting: 3.0.1 → 4.0.0-alpha.1
  • Microsoft.Extensions.Hosting: 8.* → 10.0.0-preview.5.25277.114
  • Microsoft.Extensions.Logging.Console: 9.0.2 → 10.0.0-preview.5.25277.114
  • Added 'required' modifier to message properties for better null safety
  • Added prerelease.txt file to mark this as a prerelease sample
  • Updated all project files to use single target framework (net10.0)
  • test
  • Fixes: Update Sample: bridge/simple #7278

cquirosj added 2 commits July 18, 2025 00:17
Fixes: #7278

This commit updates the bridge simple sample from NServiceBus 9 to NServiceBus 10, including:

**Framework Updates:**
- Upgraded from .NET 9/8 multi-targeting to .NET 10 (net10.0)
- Updated LangVersion from 12.0 to preview to support latest C# features

**Package Updates:**
- NServiceBus: 9.* → 10.0.0-alpha.1
- NServiceBus.MessagingBridge: 3.* → 4.0.0-alpha.1
- NServiceBus.Extensions.Hosting: 3.0.1 → 4.0.0-alpha.1
- Microsoft.Extensions.Hosting: 8.* → 10.0.0-preview.5.25277.114
- Microsoft.Extensions.Logging.Console: 9.0.2 → 10.0.0-preview.5.25277.114

**Modern C# Features Applied:**
- Added 'required' modifier to message properties for better null safety
- Maintained existing modern patterns (var usage, Host builder pattern)

**Project Structure:**
- Added prerelease.txt file to mark this as a prerelease sample
- Updated all project files to use single target framework (net10.0)
- Preserved existing architecture and functionality

**Testing:**
- Sample builds successfully on .NET 10 preview
- All endpoints (Bridge, LeftSender, LeftReceiver, RightReceiver) compile without errors
- Message routing and bridge configuration remain unchanged
@cquirosj cquirosj self-assigned this Jul 18, 2025
Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Pull request has had no activity for 30 days. label Aug 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Pull request has had no activity for 30 days.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Sample: bridge/simple
1 participant