[PR #243] Call electronize from the Path instead of via dotnet in launchSettings.json #1121

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

Original Pull Request: https://github.com/ElectronNET/Electron.NET/pull/243

State: closed
Merged: Yes


I've noticed that when calling electronize init
The default behaviour is to modify launchSettings.json to add a profile to launch electronize via dotnet
However this would only work if electronize.exe was renamed to dotnet-electronize.exe in the tools directory

I've modified the init routine and the launchSettings.json of the example web app
to instead call electronize directly from the Path
Typically under windows it's located under C:\Users\UserName\.dotnet\tools\electronize.exe
which seems to be on my path by default.
For info the WorkingDirectory parameter of "." is needed to place the working directory in the same directory as the .csproj file instead of somewhere inside a bin/Debug folder.

The only other way to fix this would be to rename electronize.exe to dotnet-electronize.exe when it's installed as a tool

dotnet tool install ElectronNET.CLI -g

see https://github.com/natemcmaster/dotnet-tools

**Original Pull Request:** https://github.com/ElectronNET/Electron.NET/pull/243 **State:** closed **Merged:** Yes --- I've noticed that when calling **electronize init** The default behaviour is to modify launchSettings.json to add a profile to launch electronize via dotnet However this would only work if electronize.exe was renamed to dotnet-electronize.exe in the tools directory I've modified the init routine and the launchSettings.json of the example web app to instead call electronize directly from the Path Typically under windows it's located under C:\Users\UserName\\.dotnet\tools\electronize.exe which seems to be on my path by default. For info the WorkingDirectory parameter of "." is needed to place the working directory in the same directory as the .csproj file instead of somewhere inside a bin/Debug folder. The only other way to fix this would be to rename electronize.exe to dotnet-electronize.exe when it's installed as a tool ``` dotnet tool install ElectronNET.CLI -g ``` see https://github.com/natemcmaster/dotnet-tools
claunia added the pull-request label 2026-01-29 16:57:33 +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#1121