From 43156961363facb0aac0e8ae9a6b90ac7c12162a Mon Sep 17 00:00:00 2001 From: Matt Date: Sat, 23 May 2026 16:40:23 +0000 Subject: [PATCH] launcher: add EnableWindowsTargeting for cross-compile from Linux Microsoft.NET.Sdk.WindowsDesktop emits NETSDK1100 when a Windows- targeting project is built from a non-Windows host. Setting EnableWindowsTargeting=true opts in to the cross-compile path, which works on Linux as long as the WindowsDesktop SDK files are present. On glados they were copied from a Windows .NET 8 SDK archive into /usr/lib/dotnet/sdk/8.0.126/Sdks/Microsoft.NET.Sdk.WindowsDesktop/ and /usr/lib/dotnet/packs/Microsoft.WindowsDesktop.App.Ref/. This is a one-time setup per Linux host -- see the bridge-claude memory note. No-op on Windows hosts (the flag has no effect when the SDK is native). Both PC builds and glados builds now produce the same output. --- launcher/ModpackLauncher.csproj | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/launcher/ModpackLauncher.csproj b/launcher/ModpackLauncher.csproj index d730041..303bc1f 100644 --- a/launcher/ModpackLauncher.csproj +++ b/launcher/ModpackLauncher.csproj @@ -4,6 +4,11 @@ net8.0-windows + + true true enable app.manifest