Skip to content

[wasm] wasmconsole - output path passed to dotnet publish does not result in a runnable project at the published path #94319

Closed as not planned

Description

@JakeYallop

Description

Related to #94291

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

Activity

  1. ghost added
    needs-area-label
    on Nov 2, 2023
  2. ghost added
    untriaged
    on Nov 2, 2023
  3. 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
  4. 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
  5. 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
  6. added
    arch-wasm
    and removed
    needs-area-label
    on Nov 3, 2023
  7. added this to the 9.0.0 milestone on Nov 3, 2023
  8. ghost removed
    untriaged
    on Nov 3, 2023
  9. self-assigned this
    on Nov 3, 2023
  10. assigned and unassigned on Mar 1, 2024
  11. 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
  12. maraf commented on Jul 9, 2024

    @maraf
    Member

    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.

  13. modified the milestones: 9.0.0, 10.0.0 on Jul 9, 2024
  14. modified the milestones: 10.0.0, Future on Dec 12, 2024
  15. maraf commented on Dec 17, 2025

    @maraf
    Member

    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.

  16. locked and limited conversation to collaborators on Jan 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-wasmarea-Build-mono

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions