Skip to content

[browser] Wrong directory outputed for publish wasmbrowser template based app #99292

Description

@maraf

✅ Build

PS > dotnet build
Restore complete (2.3s)
You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy
  Project succeeded (8.4s) → bin\Debug\net9.0\wwwroot

❌ Publish

PS > dotnet publish -bl
Restore complete (0.7s)
You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy
  Project succeeded (28.5s) → bin\Release\net9.0\publish\

It behaves the same for Blazor WebAssembly as well. It's the output of terminal logger.
As described in TerminalLogger.cs#L862-L875 implementation, it matches high-importance messages against the "$(MSBuildProjectName) -> ...".
Blazor has target _BlazorCopyFilesToOutputDirectory which does it for build.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions