Electron.NET icon indicating copy to clipboard operation
Electron.NET copied to clipboard

Build error on fresh Blazor WebAssembly project

Open gnalvesteffer opened this issue 2 years ago • 1 comments

  • 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.

gnalvesteffer avatar Jun 29 '23 19:06 gnalvesteffer

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 avatar Sep 27 '24 19:09 giovanni-a

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

See Wiki / What's New.

FlorianRappl avatar Nov 01 '25 08:11 FlorianRappl