launcher: EnableWindowsTargeting for Linux builds #30

Merged
Matt merged 1 commits from feature/cross-compile-launcher-from-linux into main 2026-05-23 16:40:24 +00:00
Owner

One-line csproj change to allow the launcher to be built from Linux too (in addition to Windows). Requires the WindowsDesktop SDK files to be present in the local .NET install -- already done on glados.

One-line csproj change to allow the launcher to be built from Linux too (in addition to Windows). Requires the WindowsDesktop SDK files to be present in the local .NET install -- already done on glados.
Matt added 1 commit 2026-05-23 16:40:24 +00:00
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.
Matt merged commit a139196f77 into main 2026-05-23 16:40:24 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: minecraft/brass-and-sigil#30