Skip to content

Blazor WASM: Publish from MSBuild does not create wwwroot\_framework folder #29626

@Gambero81

Description

@Gambero81

I use Visual studio 2019 v16.8.4

Create a new Blazor WASM app, and publish.

If i publish from visual studio all work well.

if i publish with MSBuild.exe, the publish wwwroot subfolder does not include the _framework folder and running the app fail with error 404.

i use this msbuild command:
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe" "%SolutionFilePath%" /t:Rebuild /p:Configuration=Release /p:DeployOnBuild=true /p:PublishProfile=Release /p:DebugSymbols=false /p:DebugType=None /p:AllowedReferenceRelatedFileExtensions=none /fl

in attachment a sample project to reply the issue,

What's wrong? i miss a msbuild parameter?
Thanks

BlazorApp18.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    DoneThis issue has been fixedaffected-fewThis issue impacts only small number of customersarea-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.feature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssemblyfeature-razor-sdkfeature-static-web-assetsseverity-blockingThis label is used by an internal tool

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions