You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[wasm] wasmconsole - output path passed to dotnet publish does not result in a runnable project at the published path #94319
dotnet publish always outputs actual runnable output to the AppBundle directory (technically, $(WasmAppDir)) - this means that if I pass a custom path when running dotnet publish, e,g dotnet publish -o "C:/myCustomPublishLocation", the location, although it seems like something has been built there (it seems to match the contents of the browser-wasm folder), it is missing key files such as the blazor.boot.json.
This does not seem to be a very good experience for anyone attempting to customise the behaviour of a publish.
Its possible this issue might be a better fit in dotnet/sdk - I'm not sure where the targets are actually located.
Reproduction Steps
dotnet new wasmconsole
dotnet publish -o "C:/publishLocation"
Expected behavior
The output written to "C:/publishLocation" is the published files for the project.
Actual behavior
The output written to "C:/publishLocation" does not contain all the files required to actually run the project.
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
Reacted by Michael Schnerring, Michael Kriese and ZzZombo
Activity
ghost added
needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
changed the title [-][wasm] output path passed to dotnet publish is ignore[/-][+][wasm] output path passed to dotnet publish is ignored[/+]on Nov 2, 2023
changed the title [-][wasm] output path passed to dotnet publish is ignored[/-][+][wasm] output path passed to `dotnet publish` does not publish a runnable project[/+]on Nov 2, 2023
changed the title [-][wasm] output path passed to `dotnet publish` does not publish a runnable project[/-][+][wasm] output path passed to `dotnet publish` does not result in a runnable project at the published path[/+]on Nov 2, 2023
changed the title [-][wasm] output path passed to `dotnet publish` does not result in a runnable project at the published path[/-][+][wasm] wasmconsole - output path passed to `dotnet publish` does not result in a runnable project at the published path[/+]on Mar 20, 2024
Closing as duplicate of #102743. The SDK that was used by wasmconsole has been removed in .NET 11. The WebAssembly SDK doesn't use WasmExtraFilesToDeploy.
Activity
[-][wasm] output path passed to dotnet publish is ignore[/-][+][wasm] output path passed to dotnet publish is ignored[/+][-][wasm] output path passed to dotnet publish is ignored[/-][+][wasm] output path passed to `dotnet publish` does not publish a runnable project[/+][-][wasm] output path passed to `dotnet publish` does not publish a runnable project[/-][+][wasm] output path passed to `dotnet publish` does not result in a runnable project at the published path[/+][-][wasm] output path passed to `dotnet publish` does not result in a runnable project at the published path[/-][+][wasm] wasmconsole - output path passed to `dotnet publish` does not result in a runnable project at the published path[/+]maraf commentedon Jul 9, 2024
Plan is use the same app bundler as for browser template. Tracked in #102743. As that one won't fit in 9 timeframe, I'm moving this one as well.
maraf commentedon Dec 17, 2025
Closing as duplicate of #102743. The SDK that was used by
wasmconsolehas been removed in .NET 11. The WebAssembly SDK doesn't useWasmExtraFilesToDeploy.