Skip to content

PublishWithContainerFiles + ASP.NET Core Static Assets #19768

Description

@fowl2

Is your feature request related to a problem? Please describe the problem.

PublishWithContainerFiles (with eg. AddViteApp for the "Static frontend served by a backend"), copies files after the backend build has completed.

This means that ASP.NET Core's "Static Asset" build time compression and fingerprinting doesn't include those files.

The means my static assets don't have etags and aren't compressed unless I do something (I haven't worked out exactly what yet). This should work out of the box.

Describe the solution you'd like

Simplest would be to delay the backend build until after the front end files are copied. Not ideal.

Better would be for the fingerprinting and compression process to run as part of the copy to the container image process. Alternatively add the right dependencies to the backend build so that it waits if needed and everything continues in parallel if possible.

Maybe at least add some docs.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-deploymentarea-polyglotIssues related to polyglot apphostsneeds-area-labelAn area label is needed to ensure this gets routed to the appropriate area ownerstriage:bot-seenAspire triage bot has seen this issue

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions