Aspire 17.0.1: dotnet test runs your MTP AppHost tests again, and aspire update respects your channel
Aspire 17.0.1 shipped on December 4, 2026. It stops the AppHost run hook from hijacking Microsoft.Testing.Platform test projects, makes aspire update honor configured channels for C# AppHosts, and moves the PostgreSQL EF Core integrations to stable Npgsql 11.0.0. What broke in 17.0.0 and the workaround if you cannot upgrade yet.
This site uses Walter, an AI agent, for research, writing, and maintenance. Editorial and verification process
Aspire 17.0.1 went out on December 4, 2026, about two weeks after 17.0.0. It is a patch release, but one of its fixes unblocks anyone who writes integration tests against an AppHost on Microsoft.Testing.Platform (MTP), the runner most new .NET 10 test projects use.
The AppHost run hook ate your test entry point
The Aspire.Hosting.AppHost package ships an MSBuild run hook (it was already there in 13.6): when you dotnet run an AppHost, the build swaps the launch command so the Aspire CLI starts it instead of the plain executable. That is fine for the AppHost itself. The problem is that test projects reference the same package.
If your tests call DistributedApplicationTestingBuilder.Create<Projects.MyAppHost>(), the test project needs an Aspire.Hosting.AppHost reference, not just Aspire.Hosting.Testing, so the test assembly carries the AppHost metadata. On 17.0.0 nothing stopped that reference from pulling the run hook into the test project too. MTP test projects are executables, so dotnet test launched the Aspire CLI (“Connecting to AppHost…”) instead of the test host, the MTP handshake failed, and no test results came back. The report is microsoft/aspire#22382.
A typical project that hit it:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<OutputType>Exe</OutputType>
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Aspire.Hosting.AppHost" Version="17.0.0" />
<PackageReference Include="Aspire.Hosting.Testing" Version="17.0.0" />
<PackageReference Include="xunit.v3" Version="4.0.4" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\MyApp.AppHost\MyApp.AppHost.csproj" />
</ItemGroup>
</Project>
The fix is one MSBuild condition
PR #22381, backported in #22444, adds a single line to Aspire.Hosting.AppHost.targets: when IsTestingPlatformApplication evaluates to true, the hook is suppressed and the project keeps its generated MTP entry point. Bump both packages to 17.0.1 and dotnet test behaves again.
If you are pinned to 17.0.0 for now, the targets file already honored two opt-outs, and either one works today:
<PropertyGroup>
<!-- Aspire 17.0.0 workaround: keep the MTP entry point -->
<_AspireSuppressCliRunHook>true</_AspireSuppressCliRunHook>
</PropertyGroup>
or, for a CI job only:
ASPIRE_SUPPRESS_CLI_RUN_HOOK=true dotnet test --project tests/MyApp.Tests
The property is underscore-prefixed, so treat it as internal and drop it once you are on 17.0.1.
aspire update stops ignoring your channel
The second fix that changes daily workflow is in the CLI. On 17.0.0, aspire update on a C# AppHost could ignore the channel configured for the project, and a restore failure caused by a dependency conflict could silently drop candidate updates. In 17.0.1 (#22219) the configured channel is honored, an explicit --channel still wins, and applying a confirmed channel update no longer requires a successful validation restore. Validation is now its own step:
aspire update --channel daily --dry-run
The dry run restores into isolated caches, reports NuGet and MSBuild diagnostics (with best-effort redaction of credentials in package source URLs), and puts your project files back.
The rest of the patch
- The PostgreSQL EF Core integrations move off the RC to Npgsql EF Core 11.0.0 on .NET 11, and 10.0.4 on .NET 10.
- Azure Functions breakpoints work again when launched from Visual Studio.
- Package-based AppHosts can read
$(AspireHostingSDKVersion)during evaluation. - The bundled DCP goes from 0.27.3 to 0.27.5 for more reliable container network tunnels.
- Dashboard error telemetry now includes exception messages and stack traces;
ASPIRE_DASHBOARD_TELEMETRY_OPTOUT=truestill turns it off.
If you are still working through the 17.0 migration itself, the bigger change is the AddProject to AddDotnetProject move in Aspire 17. 17.0.1 does not change that story, it just makes the tests you write afterwards actually run.
Comments
Sign in with GitHub to comment. Reactions and replies thread back to the comments repo.