From da0e1f17db60d9591f45c48899c487e751fc4782 Mon Sep 17 00:00:00 2001 From: Florian Rappl Date: Thu, 3 Sep 2026 17:04:21 +0200 Subject: [PATCH] Fixes #1097 --- Changelog.md | 1 + src/ElectronNET/build/ElectronNET.Core.props | 9 +++------ .../build/ElectronNET.LateImport.targets | 20 +++++++++++++++++-- 3 files changed, 22 insertions(+), 8 deletions(-) diff --git a/Changelog.md b/Changelog.md index d9f2b76..31dd8f6 100644 --- a/Changelog.md +++ b/Changelog.md @@ -4,6 +4,7 @@ - Updated dependencies - Fixed socket bridge connection when a system proxy is configured (#1105) +- Fixed electron-builder using the host RID instead of the target RID (#1097) - Fixed cross-compilation behavior on same platform (#1098) @epsnm - Fixed resolution of unrelated target (#1099) @epsnm - Added target framework customization (#1095) @epsnm diff --git a/src/ElectronNET/build/ElectronNET.Core.props b/src/ElectronNET/build/ElectronNET.Core.props index 13578ca..2291e3d 100644 --- a/src/ElectronNET/build/ElectronNET.Core.props +++ b/src/ElectronNET/build/ElectronNET.Core.props @@ -4,12 +4,9 @@ 30.4.0 26.0 - - $(RuntimeIdentifier) - - $([System.Runtime.InteropServices.RuntimeInformation]::RuntimeIdentifier) - - win-$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture.ToString().ToLower()) + true diff --git a/src/ElectronNET/build/ElectronNET.LateImport.targets b/src/ElectronNET/build/ElectronNET.LateImport.targets index 4ee0e8b..5e9d965 100644 --- a/src/ElectronNET/build/ElectronNET.LateImport.targets +++ b/src/ElectronNET/build/ElectronNET.LateImport.targets @@ -95,8 +95,24 @@ + + + + + $(RuntimeIdentifier) + + $([System.Runtime.InteropServices.RuntimeInformation]::RuntimeIdentifier) + + win-$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture.ToString().ToLower()) + + + + + + - + @@ -370,7 +386,7 @@ - + x64