mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 05:34:51 +00:00
Electron version is not changing when using electronVersion in electron.manifest.json #875
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 @yuriiproniuk on GitHub (Apr 18, 2023).
Originally assigned to: @GregorBiswanger on GitHub.
ElectronNET.CLI Version: 23.6.1.0
Electron Version: 23.2.0
.NET Version: 6.0.406
Node.js - v16.16.0
Building for target: Windows
Steps to Reproduce:
Expected result: Electron version used should be 22.0.0
Other things I tried to downgrade electron version:
None of it worked.
I need to downgrade version of electron in my app so it uses Chromium v108 and I found that the sufficient version of electron which uses it is 22.0.0. But none of the ways I could find in documentation or anywhere else work.
Could you please tell me how to do it? Is it even possible?
@GregorBiswanger commented on GitHub (Apr 18, 2023):
We don't have a setting with "electronVersion": "22.0.0" - how do you get that?
Our versioning with Electron 23.6.1 is structured like this: Native Electron Support Version 23 - .NET 6 and our internal release for this combination is 1.
@yuriiproniuk commented on GitHub (Apr 19, 2023):
So there is no ability to target Electron version that would use Chromium v108?
@GregorBiswanger commented on GitHub (Apr 19, 2023):
No, that is fixed in Electron. Only a newer Electron version has a more recent Chromium version.
@RolandasV commented on GitHub (Aug 28, 2023):
So is there no way to specify the version of electron? On of my machines an old version is used, how can I set it to use a recent version?
I'm using electronize build /target win. On my machine and it uses electron 23.2.0.
When I run the command on another machine it uses electron 13.1.5 even though the ElectronNET.CLI and node.js and npm versions are the same on both machines.
Probably because of the old Electron version the app does not run.
I can see the version used in the output from electronize command: Package Electron App for Platform win...
npx electron-builder --config=./bin/electron-builder.json --win --x64 -c.electronVersion=13.1.5
@nszabi commented on GitHub (Oct 31, 2023):
Hi there, we also need this feature, as we had an issue in our Greenland app due to the daylight saving time changes introduced there. Electron v23.2.0 returns the wrong time when using the Greenland time zone (new Date() in console), v24.0.0+ the time is returned correctly.
We mitigated the issue by building electronnet.cli from source and passing the correct version of electron to the electron-builder call (in BuildCommand.cs).
For electronize start we also modified the package.json that's being copied into the obj/host folder.
It would be nice if the electron version could be specified on the command line without the need to build our own executable, as a lot of Electron versions are fully or mostly compatible with the current ElectronNET.API.
@FlorianRappl commented on GitHub (Nov 1, 2025):
Outdated - use
ElectronNET.CoreandElectronNET.Core.AspNet.See Wiki / What's New.