Skip to content

update net10 and aspire 17 - #19

Merged
oising merged 3 commits into
mainfrom
aspire-17-updates-1
Nov 23, 2026
Merged

oising merged 3 commits into
mainfrom
aspire-17-updates-1

Conversation

@oising

@oising oising commented Nov 22, 2026

Copy link
Copy Markdown
Owner

• Upgrade projects to .NET 10 and Aspire 17, including the AppHost migration to AddDotnetProject.
• Upgrade tests to xUnit v3 and enable Microsoft Testing Platform.
• Add an Aspire end-to-end test covering startup-form submission, Event Hubs message delivery, and pause/resume commands.
• Update CI, documentation, and obsolete API usages; resolve the solution build warnings.

Breaking changes

Project Commander 3.0 requires Aspire 17 or later. Hosting extensions now target Aspire’s DotnetProjectResource; AppHosts should use AddDotnetProject.

Verification

• Forced solution build: 0 warnings, 0 errors
• Full solution test run: 18 passed
The end-to-end test requires Docker for the Event Hubs emulator.

Copilot AI balanced review requested due to automatic review settings November 22, 2026 23:20

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.

🟡 Changes recommended

Both test projects lack xUnit’s Microsoft.Testing.Platform entry point, leaving the CI test command incompatible with the runner selected by global.json.

1 open issue
What changed in this PR

This PR updates Project Commander to version 3.0, targeting .NET 10 and Aspire 17. Hosting extensions now use DotnetProjectResource, requiring AppHosts to migrate to AddDotnetProject.

Changes:

  • Upgrade library, sample, and test dependencies; replace obsolete Aspire APIs.
  • Migrate tests to xUnit v3, select Microsoft Testing Platform, and add Docker-backed end-to-end coverage.
  • Update CI, compatibility documentation, and solution configuration.
File Description
Src/​Nivot.Aspire.ProjectCommander/​Nivot.Aspire.ProjectCommander.csproj Target .NET 10 and update client dependencies.
Src/​Nivot.Aspire.Hosting.ProjectCommander/​ResourceBuilderProjectCommanderExtensions.cs Migrate extensions to DotnetProjectResource and current command APIs.
Src/​Nivot.Aspire.Hosting.ProjectCommander/​Nivot.Aspire.Hosting.ProjectCommander.csproj Target .NET 10 and add Aspire 17 hosting dependencies.
Src/​Nivot.Aspire.Hosting.ProjectCommander/​DistributedApplicationBuilderExtensions.cs Update startup-form command APIs and XML reference.
Src/​Directory.Build.props Bump package version to 3.0.0.
Sample/​SpiraLog/​SpiraLog.csproj Upgrade sample framework and dependencies.
Sample/​ProjectCommander.ServiceDefaults/​ProjectCommander.ServiceDefaults.csproj Upgrade shared service and telemetry dependencies.
Sample/​ProjectCommander.AppHost/​ProjectCommander.AppHost.csproj Adopt the .NET SDK and Aspire 17 packages.
Sample/​ProjectCommander.AppHost/​Program.cs Register sample projects with AddDotnetProject.
Sample/​DataGenerator/​DataGenerator.csproj Upgrade to .NET 10 and Aspire 17 Event Hubs integration.
Sample/​Consumer/​Consumer.csproj Upgrade to .NET 10 and Aspire 17 Event Hubs integration.
README.md Document compatibility, updated registration, and end-to-end testing.
ProjectCommander.UnitTests/​StartupFormServiceTests.cs Pass xUnit test cancellation tokens to asynchronous waits.
ProjectCommander.UnitTests/​ProjectCommander.UnitTests.csproj Upgrade unit tests to .NET 10 and xUnit v3.
ProjectCommander.Tests/​ProjectCommanderEndToEndTests.cs Add startup-form, message-delivery, and pause/resume coverage.
ProjectCommander.Tests/​ProjectCommander.Tests.csproj Upgrade integration tests and reference the sample AppHost.
ProjectCommander.Tests/​IntegrationTest1.cs Remove the unused integration-test placeholder.
ProjectCommander.sln Update Visual Studio metadata and include the README.
global.json Select Microsoft Testing Platform for dotnet test.
aspire.config.json Configure the sample AppHost and Aspire SDK version.
.github/​workflows/​main.yml Run tests against the correct solution using --solution.

Review effort: Balanced

oising and others added 2 commits November 22, 2026 18:24
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

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.

🔵 Needs a closer look

The test project lacks Microsoft Testing Platform runner opt-in, preventing documented end-to-end and solution-wide test commands from running it under the platform selected in global.json.

No open issues 🎉

1 previously missed issue

In code that hasn't changed since last review

Medium severity Enable Microsoft Testing Platform for this test project

ProjectCommander.Tests/​ProjectCommander.Tests.csproj:4

global.json now selects Microsoft Testing Platform, but this project still uses xUnit's standalone runner, so the documented end-to-end command and solution-wide test runs cannot run it through the selected platform. Add UseMicrosoftTestingPlatformRunner here, matching the unit-test project and the upstream SDK's default-branch xUnit v3 template.

1 resolved since last review

Review effort: Balanced

@oising
oising merged commit be09a29 into main Nov 23, 2026
5 checks passed
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