mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-11-28 17:28:36 +01:00
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 <rmcrackan@gmail.com>
This commit is contained in:
14
AGENTS.md
14
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`
|
||||
|
||||
Reference in New Issue
Block a user