Electron.NET
Electron.NET copied to clipboard
Build error on fresh Blazor WebAssembly project
- 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:
- Create a new Blazor WebAssembly project targeting .NET 6.0.
- Add the ElectronNET.API NuGet package.
- Build the project and encounter the error.
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!