Build error on fresh Blazor WebAssembly project #905

Closed
opened 2026-01-29 16:51:43 +00:00 by claunia · 2 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:43 +00:00
Author
Owner

@giovanni-a commented on GitHub (Sep 27, 2024):

Did anyone have any luck running Electron.NET with a Blazor WebAssembly project? All the tutorials that I have found seem to be for Blazor Server. Thanks a lot!

@giovanni-a commented on GitHub (Sep 27, 2024): Did anyone have any luck running Electron.NET with a Blazor WebAssembly project? All the tutorials that I have found seem to be for Blazor Server. Thanks a lot!
Author
Owner

@FlorianRappl commented on GitHub (Nov 1, 2025):

Outdated - use ElectronNET.Core and ElectronNET.Core.AspNet.

See Wiki / What's New.

@FlorianRappl commented on GitHub (Nov 1, 2025): Outdated - use `ElectronNET.Core` and `ElectronNET.Core.AspNet`. See [Wiki / What's New](https://github.com/ElectronNET/Electron.NET/wiki/What's-New).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#905