Pass configuration profile to electronize #494

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

Originally created by @nazar322 on GitHub (May 19, 2020).

Originally assigned to: @GregorBiswanger on GitHub.

I work on a cross-platform project that supposes to run on both Mac and Windows. To avoid code duplicates I have classes that mostly share the same code but might have platform-specific areas that I distinct from the rest of the code with #if WINDOWS for instance. Then I have created configuration profiles for each Windows and Mac builds that define symbols I need to compile my project for the platform I need.
The problem with electronize is that I cannot pass my configuration profile and therefore, because my code dependent on predefined symbols, dotnet publish fails to build my project.
Please add a command argument to pass the configuration profile to both electronize build and electronize start commands.

Originally created by @nazar322 on GitHub (May 19, 2020). Originally assigned to: @GregorBiswanger on GitHub. <!-- Please search existing feature request to avoid creating duplicates. --> <!-- If you want, you can donate to increase feature request priority (https://donorbox.org/electron-net) --> <!-- Describe the feature you'd like. --> I work on a cross-platform project that supposes to run on both Mac and Windows. To avoid code duplicates I have classes that mostly share the same code but might have platform-specific areas that I distinct from the rest of the code with `#if WINDOWS` for instance. Then I have created configuration profiles for each Windows and Mac builds that define symbols I need to compile my project for the platform I need. The problem with `electronize` is that I cannot pass my configuration profile and therefore, because my code dependent on predefined symbols, `dotnet publish` fails to build my project. Please add a command argument to pass the configuration profile to both `electronize build` and `electronize start` commands.
claunia added the Feature label 2026-01-29 16:41:07 +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#494