Skip to content

[release/13.4] Mark Aspire.Hosting.Blazor as preview - #17694

Merged
Jose Perez Rodriguez (joperezr) merged 2 commits into
release/13.4from
joperezr/mark-blazor-hosting-unstable
May 29, 2026
Merged

Jose Perez Rodriguez (joperezr) merged 2 commits into
release/13.4from
joperezr/mark-blazor-hosting-unstable

Conversation

@joperezr

Copy link
Copy Markdown
Member

Fixes #17685.

Summary

The 13.4.0 stable build of Aspire.Hosting.Blazor ships the gateway scripts only under buildTransitive/net8.0/Scripts/, while the TypeScript polyglot AppHost loader resolves Gateway.cs from lib/net8.0/Scripts/. As a result, aspire run against a TS AppHost that calls addBlazorGateway fails out of the box with:

Capability Error: Could not invoke 'addBlazorGateway': Gateway.cs not found at
   'C:\Nuget\aspire.hosting.blazor\13.4.0\lib\net8.0\Scripts\Gateway.cs'.

To prevent users from picking up the broken stable package on 13.4.x while the packaging/loader fix is being worked, this PR sets <SuppressFinalPackageVersion>true</SuppressFinalPackageVersion> on the Aspire.Hosting.Blazor project so the built package stays preview-shaped on this release branch.

Change

  • src/Aspire.Hosting.Blazor/Aspire.Hosting.Blazor.csproj: add SuppressFinalPackageVersion=true with a comment pointing at #17685.

No code/behavioral changes — only the package version shape is affected.

The 13.4.0 stable build ships gateway scripts only under buildTransitive/net8.0/Scripts/, while the TypeScript AppHost loader resolves Gateway.cs from lib/net8.0/Scripts/. This breaks the TS polyglot AppHost flow out of the box. Mark the package as preview-shaped via SuppressFinalPackageVersion so consumers don't pick it up as stable until the packaging/loader issue is fully addressed.

Fixes #17685

Co-authored-by: Copilot <[email protected]>
Copilot AI review requested due to automatic review settings May 29, 2026 21:39
@github-actions

github-actions Bot commented May 29, 2026 •

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 17694

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 17694"

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.

Pull request overview

Marks the Aspire.Hosting.Blazor package as preview on the release/13.4 branch by setting SuppressFinalPackageVersion=true, preventing users from picking up the broken 13.4.0 stable package whose gateway scripts are packaged under buildTransitive/ while the loader resolves them from lib/.

Changes:

  • Add SuppressFinalPackageVersion=true (with explanatory comment referencing #17685) to Aspire.Hosting.Blazor.csproj.
Show a summary per file
File Description
src/Aspire.Hosting.Blazor/Aspire.Hosting.Blazor.csproj Keeps the package preview-shaped on 13.4.x to avoid shipping a broken stable build.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

@joperezr
Jose Perez Rodriguez (joperezr) merged commit dfd226a into release/13.4 May 29, 2026
307 of 310 checks passed
@joperezr
Jose Perez Rodriguez (joperezr) deleted the joperezr/mark-blazor-hosting-unstable branch May 29, 2026 22:11
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 13.4 milestone May 29, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

✅ No documentation update needed.

docs_optional → internal_refactor

No signals triggered (signal_count: 0). The only changed file is src/Aspire.Hosting.Blazor/Aspire.Hosting.Blazor.csproj, which adds SuppressFinalPackageVersion=true to keep the package preview-shaped on the 13.4.x release branch. The PR body explicitly states: "No code/behavioral changes — only the package version shape is affected." This is a release-engineering mitigation with no user-visible behavior change to document.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants