Skip to content

⬆️ Update to Aspire 13.5.0 - #19

Merged
alanta merged 2 commits into
mainfrom
chore/update-to-aspire-13.5
Aug 20, 2026
Merged

alanta merged 2 commits into
mainfrom
chore/update-to-aspire-13.5

Conversation

@alanta

@alanta alanta commented Aug 20, 2026

Copy link
Copy Markdown
Owner

Closes #17.

Aspire 13.5.0

Aspire.Hosting and Aspire.AppHost.Sdk 13.4.6 → 13.5.0, lock files refreshed.

13.5 is not drop-in — two source changes were needed:

  • HttpsCertificateConfigurationCallbackAnnotationContext gained a required CertificateWithKeyPath member (cert + key concatenated as PEM). That's a compile error anywhere the context is constructed by hand, which here is only When_supplying_a_certificate; the resource's own callback still reads PfxPath and was unaffected.
  • DistributedApplicationExecutionContextOptions.ServiceProvider is obsolete in favour of Services.

The certificate APIs are still experimental in 13.5, so the ASPIRECERTIFICATES001 suppressions stay. Version mentions in the package README and the suppression comments were updated, and the stated requirement moves to Aspire 13.5.0+.

xunit.runner.visualstudio 4.0.0

The 4.x adapter still runs xunit v1/v2/v3 (confirmed in the 4.0.0 nuspec), so it pairs fine with the xunit 2.9.3 the test projects pin — the major is about dropping older Visual Studio and TFM support.

Verification

  • dotnet build / dotnet test -c Release: green, 7 proxy + 13 hosting tests.
  • dotnet publish -t:PublishContainer: image builds onto mcr.microsoft.com/dotnet/aspnet:10.0-noble-chiseled-extra and writes the archive — same path CI verifies.
  • Real aspire run of AspireDemo: both demoapp and easyauth come up Running/Healthy, and aspire logs easyauth confirms YARP forwarding to the backend over HTTPS.

Known, deliberately not addressed

13.5 adds warning ASPIRE010 on the AppHost build, nudging toward AspireUseCliBundle=true. Left as-is on purpose: flipping it drops the Aspire.Dashboard.Sdk.* / Aspire.Hosting.Orchestration.* NuGet packages in favour of a machine-local CLI bundle, which would need an Aspire CLI install step in CI and would take DCP/dashboard out of lock-file coverage. CI never runs the AppHost, so there's no benefit today. The warning stays as an active reminder — the ASPIRE009 text notes these packages will be deprecated eventually, so this wants its own change later.

alanta added 2 commits August 20, 2026 10:51
Bump Aspire.Hosting and the Aspire.AppHost.Sdk from 13.4.6 to 13.5.0 and
refresh the lock files.

Two source changes were needed - 13.5 is not drop-in:

- HttpsCertificateConfigurationCallbackAnnotationContext gained a required
  CertificateWithKeyPath member (cert + key concatenated as PEM), which is a
  compile error wherever the context is constructed by hand. Only the tests
  do that; the resource's own callback still reads PfxPath.
- DistributedApplicationExecutionContextOptions.ServiceProvider is obsolete
  in favour of Services.

The certificate APIs are still experimental in 13.5, so the
ASPIRECERTIFICATES001 suppressions stay; version mentions in the package
README and the suppression comments were updated to match.

Verified with a real `aspire run` of AspireDemo: both resources come up
Healthy and the proxy forwards to the backend over HTTPS.
The 4.x adapter still runs xunit v1/v2/v3, so it pairs fine with the
xunit 2.9.3 the test projects use; the major bump is about dropping
older Visual Studio and target-framework support.

Everything else in Directory.Packages.props is already current - the
Test SDK and container-tools bumps landed on main via dependabot.
@alanta
alanta merged commit 8be85ba into main Aug 20, 2026
5 checks passed
@alanta
alanta deleted the chore/update-to-aspire-13.5 branch August 20, 2026 09:42
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.

Update to Aspire 3.5

1 participant