Skip to content

Fix runtime FileNotFoundException from ProxyGenerator.Build leak in Cratis.dll#2245

Merged
einari merged 2 commits into
mainfrom
fix/cratis-proxy-generator-build-alias
May 24, 2026
Merged

Fix runtime FileNotFoundException from ProxyGenerator.Build leak in Cratis.dll#2245
einari merged 2 commits into
mainfrom
fix/cratis-proxy-generator-build-alias

Conversation

@einari
Copy link
Copy Markdown
Contributor

@einari einari commented May 24, 2026

Fixed

  • Cratis.dll no longer leaks typeof() references to the build-time ProxyGenerator.Build helper, which caused FileNotFoundException at runtime in consuming applications.

Changed

  • Bumped Cratis.Fundamentals and Cratis.Metrics.Roslyn from 7.9.16 to 7.10.3.
  • Bumped Testcontainers.MsSql and Testcontainers.PostgreSql from 4.11.0 to 4.12.0.
  • Bumped Meziantou.Analyzer from 3.0.85 to 3.0.93.

einari added 2 commits May 24, 2026 09:09
…tion

Without an alias, the type-discovery source generator bakes typeof()
references to the build helper's public types into the published
Cratis.dll. Consuming applications then fail with FileNotFoundException
at runtime because the build helper's DLL is not deployed to the runtime
output. The alias hides the build-time tool from the global namespace
during Cratis.dll's compilation while preserving its package dependency
in the published nuspec.
- Cratis.Fundamentals 7.9.16 -> 7.10.3
- Cratis.Metrics.Roslyn 7.9.16 -> 7.10.3
- Testcontainers.MsSql 4.11.0 -> 4.12.0
- Testcontainers.PostgreSql 4.11.0 -> 4.12.0
- Meziantou.Analyzer 3.0.85 -> 3.0.93
@einari einari added the patch label May 24, 2026
@einari einari merged commit 3e48254 into main May 24, 2026
5 of 7 checks passed
@einari einari deleted the fix/cratis-proxy-generator-build-alias branch May 24, 2026 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant