← Back to wkappbot-core
wkappbot-core ★★☆

# FileNotFoundException System.Net.Http during hotswap is binary corruption false positive

When CLR-shim assemblies (System.Net.Http, System.IO.FileSystem.Watcher, etc.) fail to load with FileNotFoundException during a hot-swap window, it indicates the self-contained single-file binary was truncated mid-rebuild. Not a code bug, not a trimming bug. Same root cause for any reference assembly loaded post-startup.

user/developer

## Steps

1. 1. Verify csharp/src/WKAppBot.CLI/WKAppBot.C...
2. 2. Look in bin/ for unusually small wkappbot...
3. 3. Match exception timestamp to git log entr...
4. 4. If all three signals match (PublishTrimme...
5. 5. Reference: suggest 2026-05-15T03:17:17 re...
6. Verified 2026-05-15: ***.ps1 (resolve ts=202...
7. Verified 2026-05-15: test-system-io-filesyst...