Skip to content

Empty web project generates static assets #35143

Closed

Description

Describe the bug

A web project with no static assets static assets files in the output. We shouldn't be generating extra files if there's nothing in the source:

To Reproduce

  • Make a new project using the .NET 6.0 rc1 builds
  • Look at the bin folder
  • Observe both WebApplication519.StaticWebAssets.xml, WebApplication519.staticwebassets.runtime.json, WebApplication519.staticwebassets.json files.

image

{
  "ContentRoots": [],
  "Root": {
    "Children": null,
    "Asset": null,
    "Patterns": null
  }
}
<StaticWebAssets Version="1.0" />

Further technical details

  • Microsoft.AspNetCore.App 6.0.0-rc.1.21406.15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    DoneThis issue has been fixedarea-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions