From d23b87d2ad08d2d98633e9424ad9ec6c63af5d7b Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 19 Aug 2026 14:45:40 +0000 Subject: [PATCH] docs: AGENTS.md was wrong that WinForms cannot build on Linux dotnet build Source/Libation.slnx succeeds here with 0 errors, as do LibationWinForms, HangoverWinForms and both LoadByOS ConfigApp helpers individually. They target net10.0-windows7.0 but set EnableWindowsTargeting, which is what lets a non-Windows SDK build them. I took the old claim at face value and shipped a PR's worth of WinForms edits without ever compiling them. The bug fixed in the previous commit would have been caught by review either way, but several of the designer edits could just as easily have failed to compile. Record the distinction the old text blurred: everything compiles here, WinForms still cannot run here, and those are different claims. Co-authored-by: rmcrackan --- AGENTS.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 22ee1c12..a51a61f8 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -15,10 +15,16 @@ plus a headless CLI (`LibationCli`) that shares the same config and SQLite libra `dotnet restore Source/Libation.slnx`. No other setup is needed. - The solution file is the new XML format: `Source/Libation.slnx` (there is no classic `.sln`). -### Building — Linux only builds the cross-platform projects -- Do **not** build the whole solution on Linux. Several projects are Windows/OS-specific and will - not build here: `LibationWinForms`, `HangoverWinForms` (target `net10.0-windows7.0`) and the - `LoadByOS/{Windows,MacOS}ConfigApp` helpers. +### Building — everything compiles on Linux, only some of it runs +- `dotnet build Source/Libation.slnx` succeeds on Linux with 0 errors. So do + `LibationWinForms`, `HangoverWinForms` and the `LoadByOS/{Windows,MacOS}ConfigApp` helpers, + individually: they target `net10.0-windows7.0` but set `EnableWindowsTargeting`, which is what makes + a non-Windows SDK build them. **Always compile-check a change to the WinForms projects** — an earlier + version of this file said they could not be built here, and a whole PR's worth of WinForms edits went + out unverified on the strength of that. +- Compiling is not running. WinForms has no Linux runtime, so behaviour and layout in + `LibationWinForms` / `HangoverWinForms` still need a human on Windows. Say so explicitly rather than + implying a WinForms change was tested. - Build the runnable cross-platform apps directly: - `dotnet build Source/LibationAvalonia/LibationAvalonia.csproj` - `dotnet build Source/LibationCli/LibationCli.csproj`