question

AndrewGulidov-8951 avatar image
0 Votes"
AndrewGulidov-8951 asked YiyiYou-MSFT commented

Visual Studio. Blazor WASM debug runs incorrect project if blazor projects not alone in the solution.

Hello.
My solution contains several projects:
1. Console application
2. BlazorWebAssembly.Client
3. BlazorWebAssembly.Server
4. BlazorWebAssembly.Shared

When I am trying to debug Blazor app I do the following steps:
1. Right click on the "BlazorWebAssembly.Server"
2. Select "Set as Startup project" option.
3. Click on the button on the image: 99221-image.png

But after that, the default project switches to my console app and runs it. How can I run my blazor server using visual studio in that case?
Visual Studio Version 16.9.6

Upd. If right click on the server project and select "Debug/Start new instance" it works. But it is weird that it doesn't work the way described above.




vs-debuggingdotnet-aspnet-core-blazor
image.png (1.2 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,AndrewGulidov-8951

Here is an official doc about debugging in WASM.You can refer to it.

0 Votes 0 ·

0 Answers