Can not run or debug ASP.NET Core Blazor WebAssembly App within Rider on Pop!_OS

Answered

Hi, I'm having problems running or debugging blazor wasm apps from within Rider.

I am able to create a "Blazor WebAssembly App" project with Rider, however when I try to run or debug the application I get the following error ...

Error running 'sandbox': File /home/.../repos/blazor/sandbox/sandbox/bin/Debug/netstandard2.1/sandbox.exe doesn't exist

"sandbox.exe" does not exist but the expected "sandbox.dll" does exist.

The strange part is, I can run the project from the terminal with "dotnet run" from within the project path, though I can not attach to it for debugging.

Creating, running and debugging  a "Blazor Server App" or an "ASP.NET Core App" work as expected.

 

My Setup

OS: Pop!_OS 19.10, up-to-date

Rider: 2019.3.4

.Net Core: 3.1.201

ASP.NET Core: 3.1

Blazor: Microsoft.AspNetCore.Components.WebAssembly.Templates::3.2.0-preview2.20160.5

 

At the following link, you can find ...

https://docs.microsoft.com/en-us/aspnet/core/blazor/get-started?view=aspnetcore-3.1&tabs=visual-studio

  • "Blazor Server is supported in ASP.NET Core 3.0. Blazor WebAssembly is in preview for ASP.NET Core 3.1."
  • ".NET Core SDK version 3.1.102 or later is required to use the 3.2 Preview 2 Blazor WebAssembly template."

 

Thanks for the help

0
1 comment

Hi,

This is a known issue, unfortunately. Here is a workaround for running the app without debug. Please feel free to vote for the corresponding feature request: https://youtrack.jetbrains.com/issue/RIDER-32948

0

Please sign in to leave a comment.