mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 13:44:47 +00:00
Unable to run or build Electron app with WSL #915
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @peter-bozovic on GitHub (Sep 4, 2023).
Environment: Windows 11 with Ubuntu 22.04 on WSL 2
Dotnet Version: 7
Steps to Reproduce:
wsl --install -d Ubuntu-22.04Then within the Linux prompt:
2. Install dotnet 6 (for Electron cli) & dotnet 7 for the project
sudo apt-get update && sudo apt-get install -y dotnet-sdk-6.0 && sudo apt-get install -y dotnet-sdk-7.04. Install Electron CLI
dotnet tool install ElectronNET.CLI -g5. Add path for electronize (copy/paste depending on your user account name)
export PATH="$PATH:/home/{{username}}/.dotnet/tools"6. Create project folder
mkdir ElectronBuild && cd ElectronBuild7. Create Blazor Server Project
dotnet new blazorserver8. Init the Electron config
electronize init9.a Try to run the app
electronize startThe following error appears at the end:
9.b Try to publish the app
electronize build /target linuxThe following error appears at the end:
For some reason, it's using the network path
\\wsl.localhost\...as project location and also trying to look for stuff withinC:\WINDOWS\...which is of course not accessible within WSLI don't know if it's the Elecronize CLI issue or the electron builder issue or if there are workarounds on how to make it work ...
@FlorianRappl commented on GitHub (Oct 31, 2025):
Outdated - use
ElectronNET.CoreandElectronNET.Core.AspNet.See Wiki / What's New.