Share via

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

Andrei Hulidau 1 Reputation point
2021-05-24T16:05:58.867+00:00

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.

Developer technologies | .NET | Blazor
Developer technologies | Visual Studio | Debugging

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.