Build error on fresh Blazor WebAssembly project #902

Open
opened 2026-01-29 16:51:40 +00:00 by claunia · 0 comments
Owner

Originally created by @gnalvesteffer on GitHub (Jun 29, 2023).

  • Version:
    ElectronNET.API 23.6.1
  • .NET Version:
    .NET 6.0
  • Target:
    Windows

Simply adding the ElectronNET.API nuget package to a new Blazor WebAssembly project results in the following build error:
[NETSDK1082] There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'browser-wasm'.

I'm fairly new to Blazor in general, so if this is just something simple I may have missed, please let me know.

Steps to Reproduce:

  1. Create a new Blazor WebAssembly project targeting .NET 6.0.
  2. Add the ElectronNET.API NuGet package.
  3. Build the project and encounter the error.
Originally created by @gnalvesteffer on GitHub (Jun 29, 2023). <!-- Which version of Electron.NET CLI and API are you using? --> <!-- Please always try to use latest version before report. --> * **Version**: ElectronNET.API 23.6.1 <!-- Which version of .NET Core and Node.js are you using (if applicable)? --> * **.NET Version**: .NET 6.0 <!-- What target are you building for? --> * **Target**: Windows <!-- Enter your issue details below this comment. --> <!-- If you want, you can donate to increase issue priority (https://donorbox.org/electron-net) --> Simply adding the ElectronNET.API nuget package to a new Blazor WebAssembly project results in the following build error: `[NETSDK1082] There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'browser-wasm'.` I'm fairly new to Blazor in general, so if this is just something simple I may have missed, please let me know. Steps to Reproduce: 1. Create a new Blazor WebAssembly project targeting .NET 6.0. 2. Add the ElectronNET.API NuGet package. 3. Build the project and encounter the error.
claunia added the bug label 2026-01-29 16:51:40 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#902