Published Hosted Blazor WASM does not contain PDB files. #40787
Labels
area-blazor
Includes: Blazor, Razor Components
feature-blazor-wasm
This issue is related to and / or impacts Blazor WebAssembly
✔️ Resolution: Answered
Resolved because the question asked by the original author has been answered.
question
Status: Resolved
Is there an existing issue for this?
Describe the bug
I am trying to publish a hosted blazor wasm application with PDB files.
I couldn't find any way to this this apart from by using the
BlazorEnableDebugging
flag. #18859 (comment)This flag seems to work for blazor wasm applications, but with hosted the pdb files for the client project are still not output to the publish/wwwroot/_framework directory.
Expected Behavior
When running the command:
dotnet publish -c Release -p:BlazorEnableCompression=false -p:PublishTrimmed=false -p:BlazorEnableDebugging=true
on a hosted blazor wasm application the pdb files should be included in the following directory:
< server project >/bin/Release/< target framework >/publish/wwwroot/_framework
and the
blazor.boot.json
file should contain a list of the pdbs.Steps To Reproduce
Create a blazor wasm hosted solution.
Run the following command to publish from within the Server folder
dotnet publish -c Release -p:BlazorEnableCompression=false -p:PublishTrimmed=false -p:BlazorEnableDebugging=true
I have created an Example Repo with these steps complete.
As you can see the
BlazorApp1.Client.pdb
is output in the client bin folder and on line 205 of the blazor.boot.json the pdb's are listed.But in the server publish folder there is no
BlazorApp1.Client.pdb
and the pdb section is null in the blazor.boot.jsonExceptions (if any)
No response
.NET Version
6.0.300-preview.22154.4
Anything else?
No response
The text was updated successfully, but these errors were encountered: