The buildCommand of electronize should allow passing build parameters for dotnet publish #528

Closed
opened 2026-01-29 16:42:10 +00:00 by claunia · 2 comments
Owner

Originally created by @bravecobra on GitHub (Jul 10, 2020).

Originally assigned to: @GregorBiswanger on GitHub.

When publishing a dotnet project you're allowed to pass extra parameters to the msbuild process, like '/p:SemVer=1.2.3', that you can reference in the csproj. However the electronize forces you to publish the dotnet project without these. Just as you can pass extra parameters to the electron-builder, you should be able to pass extra parameters to the dotnet process.

Implementing this would be fairly easy. Just append extra arguments to this line.
https://github.com/ElectronNET/Electron.NET/blob/master/ElectronNET.CLI/Commands/BuildCommand.cs#L108

Originally created by @bravecobra on GitHub (Jul 10, 2020). Originally assigned to: @GregorBiswanger on GitHub. <!-- Please search existing feature request to avoid creating duplicates. --> When publishing a dotnet project you're allowed to pass extra parameters to the msbuild process, like '/p:SemVer=1.2.3', that you can reference in the csproj. However the electronize forces you to publish the dotnet project without these. Just as you can pass extra parameters to the electron-builder, you should be able to pass extra parameters to the dotnet process. Implementing this would be fairly easy. Just append extra arguments to this line. https://github.com/ElectronNET/Electron.NET/blob/master/ElectronNET.CLI/Commands/BuildCommand.cs#L108 <!-- If you want, you can donate to increase feature request priority (https://donorbox.org/electron-net) --> <!-- Describe the feature you'd like. -->
claunia added the Feature label 2026-01-29 16:42:10 +00:00
Author
Owner

@GregorBiswanger commented on GitHub (Mar 28, 2023):

🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉

With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!

@GregorBiswanger commented on GitHub (Mar 28, 2023): 🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉 With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!
Author
Owner

@Thokerb commented on GitHub (Apr 17, 2024):

It seems like this option no longer exists @GregorBiswanger or has been removed again
https://github.com/ElectronNET/Electron.NET/blob/main/src/ElectronNET.CLI/Commands/BuildCommand.cs

@Thokerb commented on GitHub (Apr 17, 2024): It seems like this option no longer exists @GregorBiswanger or has been removed again https://github.com/ElectronNET/Electron.NET/blob/main/src/ElectronNET.CLI/Commands/BuildCommand.cs
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#528