Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Adopt PublishWithContainerFiles for frontend assets and remove esproj coupling#1171

Draft
Copilot wants to merge 2 commits into
mainmicrosoft/aspire.dev:mainfrom
copilot/use-publishwithcontainerfilesmicrosoft/aspire.dev:copilot/use-publishwithcontainerfilesCopy head branch name to clipboard
Draft

Adopt PublishWithContainerFiles for frontend assets and remove esproj coupling#1171
Copilot wants to merge 2 commits into
mainmicrosoft/aspire.dev:mainfrom
copilot/use-publishwithcontainerfilesmicrosoft/aspire.dev:copilot/use-publishwithcontainerfilesCopy head branch name to clipboard

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 2, 2026

This updates the Aspire AppHost to use Aspire 13 publish-time container file injection for frontend assets, replacing the previous esproj-based coupling. The frontend build output is now modeled as an AppHost resource relationship instead of an MSBuild project reference.

  • AppHost publish wiring

    • Define the frontend once as a Vite resource and wire it into the StaticHost publish artifact:
    var frontend = builder.AddViteApp("frontend", "../../frontend")
        .WithPnpm();
    
    var staticHostWebsite = builder.AddProject<Projects.StaticHost>("aspiredev")
        .WithExternalHttpEndpoints();
    
    staticHostWebsite.PublishWithContainerFiles(frontend, "./wwwroot");
    • Keep local run-mode frontend endpoint behavior under IsRunMode using the same frontend resource.
  • Remove esproj dependencies

    • Removed ../../frontend/frontend.esproj ProjectReference from src/statichost/StaticHost/StaticHost.csproj.
    • Removed src/frontend/frontend.esproj from Aspire.Dev.slnx.
  • Resulting resource model

    • Publish-time frontend artifact flow is now explicit in AppHost (frontendaspiredev ./wwwroot) via PublishWithContainerFiles, aligning the solution with Aspire 13 container-files publishing.

Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
Copilot AI changed the title [WIP] Use PublishWithContainerFiles and remove esproj reference Adopt PublishWithContainerFiles for frontend assets and remove esproj coupling Jun 2, 2026
Copilot AI requested a review from IEvangelist June 2, 2026 03:13
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.

Use PublishWithContainerFiles and remove esproj reference

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.