Skip to content

Upgrade to .NET 10 / Aspire 13#889

Merged
dgee2 merged 3 commits intomasterfrom
copilot/update-dotnet-aspire-packages
Mar 8, 2026
Merged

Upgrade to .NET 10 / Aspire 13#889
dgee2 merged 3 commits intomasterfrom
copilot/update-dotnet-aspire-packages

Conversation

Copy link
Contributor

Copilot AI commented Mar 8, 2026

Upgrades all projects to .NET 10 (LTS) and Aspire 13.1.2, along with the full sweep of associated package bumps.

Framework & Aspire

  • net9.0net10.0 across all projects
  • Aspire 9.5.1 → 13.1.2 with the new SDK declaration format:
    <!-- Before -->
    <Project Sdk="Microsoft.NET.Sdk">
      <Sdk Name="Aspire.AppHost.Sdk" Version="9.5.1" />
      <IsAspireHost>true</IsAspireHost>
      <PackageReference Include="Aspire.Hosting.AppHost" Version="9.5.1" />
    
    <!-- After -->
    <Project Sdk="Aspire.AppHost.Sdk/13.1.2">
      <!-- Aspire.Hosting.AppHost now implicit; IsAspireHost set by SDK -->

Breaking API change: JavaScript hosting

AddPnpmApp + WithPnpmPackageInstallation were removed in Aspire 13. Migrated to the new Aspire.Hosting.JavaScript package API:

// Before (Aspire 9 / CommunityToolkit.Aspire.Hosting.NodeJS.Extensions)
builder.AddPnpmApp("menu-ui", "../ui/menu-website", scriptName: "aspire")
    .WithPnpmPackageInstallation();

// After (Aspire 13 / Aspire.Hosting.JavaScript)
builder.AddJavaScriptApp("menu-ui", "../ui/menu-website", "aspire")
    .WithPnpm(); // install is true by default

CommunityToolkit.Aspire.Hosting.NodeJS.Extensions replaced by Aspire.Hosting.JavaScript 13.1.2 + CommunityToolkit.Aspire.Hosting.JavaScript.Extensions 13.1.1.

Package bumps

Package Old New
EF Core (all) 9.0.7 10.0.3
JWT ****** 9.0.10 10.0.3
Microsoft.Extensions.ApiDescription.Server 9.0.10 10.0.3
Microsoft.Extensions.Http.Resilience 9.10.0 10.3.0
Microsoft.Extensions.ServiceDiscovery 9.5.1 10.3.0
OpenTelemetry (all) 1.12.0–1.13.1 1.15.0
Swashbuckle.AspNetCore 9.0.6 10.1.4
Microsoft.ApplicationInsights.AspNetCore 2.23.0 3.0.0
Microsoft.VisualStudio.Azure.Containers.Tools.Targets 1.22.1 1.23.0
Riok.Mapperly 4.2.1 4.3.1
Vogen 8.0.2 8.0.4
FakeItEasy 8.3.0 9.0.1
coverlet.collector 6.0.4 8.0.0
GitHubActionsTestLogger 2.4.1 3.0.1
MartinCostello.Logging.XUnit 0.6.0 0.7.1
Microsoft.NET.Test.Sdk 18.0.0 18.3.0
AwesomeAssertions 9.2.1 9.4.0

Removed System.Net.Http and System.Text.RegularExpressions explicit references from test projects — they're inbox in .NET 10 and were causing NU1510 warnings-as-errors.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • www.nuget.org
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Update dotnet aspire and associated nuget packages to the latest version and update any code to reflect changes in the new versions and any best practices</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

- Upgrade all projects from net9.0 to net10.0
- Upgrade Aspire 9.5.1 to 13.1.2 with new SDK declaration format
- Replace CommunityToolkit.Aspire.Hosting.NodeJS.Extensions with Aspire.Hosting.JavaScript 13.1.2
  and CommunityToolkit.Aspire.Hosting.JavaScript.Extensions 13.1.1
- Update AddPnpmApp to AddJavaScriptApp + WithPnpm() per Aspire 13 API changes
- Update EF Core to 10.0.3
- Update OpenTelemetry packages to 1.15.0
- Update Microsoft.Extensions packages to 10.3.0
- Update Swashbuckle.AspNetCore to 10.1.4
- Update Microsoft.ApplicationInsights.AspNetCore to 3.0.0
- Update Microsoft.AspNetCore.Authentication.JwtBearer to 10.0.3
- Update testing packages (coverlet 8.0.0, FakeItEasy 9.0.1, etc.)
- Remove obsolete System.Net.Http and System.Text.RegularExpressions packages from tests

Co-authored-by: dgee2 <5671841+dgee2@users.noreply.github.com>
Copilot AI changed the title [WIP] Update dotnet aspire and nuget packages to latest version Upgrade to .NET 10 / Aspire 13 Mar 8, 2026
Copilot finished work on behalf of dgee2 March 8, 2026 21:14
@dgee2 dgee2 marked this pull request as ready for review March 8, 2026 21:28
Copilot AI review requested due to automatic review settings March 8, 2026 21:28
@dgee2 dgee2 enabled auto-merge (squash) March 8, 2026 21:29
Copy link
Contributor

Copilot AI left a comment

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 solution to .NET 10 and Aspire 13.1.2, updating related NuGet dependencies and adapting the AppHost JavaScript hosting setup to the Aspire 13 API surface.

Changes:

  • Updated all projects from net9.0 to net10.0 and bumped core packages (EF Core 10.0.3, OpenTelemetry 1.15.0, Swashbuckle 10.1.4, etc.).
  • Migrated AppHost JavaScript hosting from the removed AddPnpmApp API to AddJavaScriptApp(...).WithPnpm().
  • Updated test projects’ tooling packages (coverlet, FakeItEasy, test SDK) and removed explicit inbox framework package references.

Reviewed changes

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

Show a summary per file
File Description
MenuDB/MenuDB.csproj Bumps TFM to net10.0 and EF Core packages to 10.0.3.
MenuApi/MenuApi.csproj Bumps TFM to net10.0 and updates Aspire/EF/JWT/AppInsights and other packages.
MenuApi.Tests/MenuApi.Tests.csproj Bumps TFM and updates test dependencies; removes inbox package references.
MenuApi.Integration.Tests/MenuApi.Integration.Tests.csproj Bumps TFM, upgrades Aspire.Hosting.Testing and test tooling packages.
Menu.ServiceDefaults/Menu.ServiceDefaults.csproj Bumps TFM and updates resilience, service discovery, and OpenTelemetry packages.
Menu.MigrationService/Menu.MigrationService.csproj Bumps TFM and updates Aspire EF Core SqlServer integration package.
Menu.AppHost/Program.cs Switches UI hosting to AddJavaScriptApp + WithPnpm() for Aspire 13 compatibility.
Menu.AppHost/Menu.AppHost.csproj Moves AppHost to new Aspire AppHost SDK format and updates hosting packages (including JavaScript hosting).
Menu.ApiServiceDefaults/Menu.ApiServiceDefaults.csproj Bumps TFM and Swashbuckle dependency.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 8, 2026

@dgee2 dgee2 merged commit 18c75ac into master Mar 8, 2026
8 checks passed
@dgee2 dgee2 deleted the copilot/update-dotnet-aspire-packages branch March 8, 2026 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants