Skip to content

Static content from libraries not working with Blazor dev server or default hosted project #10986

Closed
@SteveSandersonMS

Description

@SteveSandersonMS

The new "static content from libraries and projects" feature works great if you have a app.UseStaticFiles() call in your Startup.cs. However:

  • The Blazor DevServer (for the standalone template) doesn't contain such a call, and developers have no way to add one. So static content just doesn't work with this project type.
  • The Blazor hosted-on-ASP.NET-Core template also doesn't contain such a call, although developers can easily add one to their Startup.cs.

Both fixes could be trivial one-liners.

Better fix: Also delete the now-obsolete embedded content feature from Blazor, and update the E2E tests to use the new feature.

Metadata

Metadata

Assignees

Labels

DoneThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions