mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Add ability to pass an argument for "Version" for both the "dotnet publish" and "electron-builder" commands #638
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 @tub5 on GitHub (Feb 22, 2021).
As I'm using Azure DevOps to build the electron app I would like to be able to pass the version of the app as an argument to both the argument for
dotnet publishandelectron-builderprocesses. By adding in the/Versionargument it will be possible to update both of these via the build pipeline. In regards to theelectrion-builderprocess, if the/Versionargument is provided and there is a value forbuildVersionthen the/Versionvalue will take precedence.@BenjaminVettori commented on GitHub (Feb 24, 2021):
I had the same idea and just saw you already created a PR.
This will provide the ability to use e.g. gitversion to do the versioning automatically instead of having to update the manifest file with a script.
My workaround was the following powershell script, but the extra /Version argument is much more convenient