Skip to content

build: remove dead .NET Framework app.config leftovers - #7

Merged
michaldengusiak merged 1 commit into
sow/2026-Q3from
build/remove-netfx-appconfig-leftovers
Sep 22, 2026
Merged

michaldengusiak merged 1 commit into
sow/2026-Q3from
build/remove-netfx-appconfig-leftovers

Conversation

@michaldengusiak

Copy link
Copy Markdown

Summary

Removes 2 net472-era app.config files that are dead weight under .NET 8:

  • Grasshopper/SAM.Analytical.Grasshopper.TMP/app.config
  • SAM_TMP/SAM.Analytical.TMP/app.config

Both contained only <runtime><assemblyBinding> binding redirects (one also had <supportedRuntime sku=".NETFramework,Version=v4.8"/>), which .NET 8 ignores entirely — bindingRedirect is a Fusion/.NET-Framework-only mechanism. Every project here is OutputType Library targeting net8.0-windows or netstandard2.0, and a library's X.dll.config is never read by the CLR at runtime (only the host process's .exe.config is — Rhino.exe/Grasshopper here, untouched). Their only effect was stale SAM.*.dll.config files landing in build/ and %APPDATA%\SAM.

Verification (gates re-run in this repo, not assumed from the template)

  • No non-.NET-8 TargetFramework in any .csproj (only net8.0-windows / netstandard2.0).
  • Every project is OutputType Library (no Exe/WinExe).
  • No ConfigurationManager / System.Configuration / AppSettings / OpenExeConfiguration usage anywhere in .cs files.
  • Each deleted app.config contained only assemblyBinding/dependentAssembly/assemblyIdentity/bindingRedirect/runtime/startup/supportedRuntime elements — read and checked individually.
  • No .csproj/.props/.yml references app.config/AppConfig/dll.config; PostBuild Exec targets copy only *.dll/*.gha.

Test plan

  • Compile-only verification (dotnet build -t:Compile, not a full build, to avoid triggering the Grasshopper PostBuild target that rewrites %APPDATA%\SAM) for both affected projects: 0 errors each.
    • SAM.Analytical.Grasshopper.TMP: 0 errors, 2 pre-existing unrelated NU1701 warnings (com.angusj.Clipper package targeting .NET Framework).
    • SAM.Analytical.TMP: 0 errors, 0 warnings.
  • CI build check on this PR

🤖 Generated with Claude Code

2 app.config files were net472-era leftovers containing assembly binding
redirects and <supportedRuntime sku=".NETFramework,Version=v4.8"/>, neither of
which has any effect under .NET 8. Every project here targets net8.0-windows
or netstandard2.0 and is OutputType Library, and a library's .dll.config is
never read at runtime (only the host .exe.config is). Their only remaining
effect was to emit stale SAM.*.dll.config files into build/ and the
%APPDATA%\SAM deploy folder.

Verified: no TargetFramework other than net8.0-windows/netstandard2.0 in any
csproj; every project is OutputType Library (no Exe/WinExe); no
ConfigurationManager/System.Configuration/AppSettings/OpenExeConfiguration
usage in any .cs file; each deleted app.config contained only
assemblyBinding/dependentAssembly/assemblyIdentity/bindingRedirect/runtime/
startup/supportedRuntime elements; no csproj/props/yml references
app.config/AppConfig/dll.config, and the PostBuild Exec targets copy only
*.dll/*.gha. Compile-only (-t:Compile, not a full build) verification of both
affected projects: 0 errors each (SAM.Analytical.Grasshopper.TMP had 2
pre-existing, unrelated NU1701 warnings about the com.angusj.Clipper package
targeting .NET Framework).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-22T18:23:41.944077Z 674e05f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@michaldengusiak
michaldengusiak merged commit 49d37d8 into sow/2026-Q3 Sep 22, 2026
2 checks passed
@michaldengusiak
michaldengusiak deleted the build/remove-netfx-appconfig-leftovers branch September 22, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant