You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Released 0.14.5 AOT tool fails to rewrite NEST: cannot resolve System.Diagnostics.Debug #35
The released 0.14.5 native AOT tool fails a plain rewrite of NEST and Elasticsearch.Net 6.2.0 (netstandard1.3): it cannot resolve the System.Diagnostics.Debug facade. The managed net8.0/net10.0 builds rewrite the same packages correctly. Not investigated further.
Found while bumping dependencies; not fixed there.
Broader than NEST: the native-AOT binary fails every real rewrite tried (netstandard1.3, net46, net10.0 inputs) with AssemblyResolutionException, with or without -r <framework dir>. main's AOT binary fails the same way.
Cause:
Cecil's DefaultAssemblyResolver finds framework assemblies through TRUSTED_PLATFORM_ASSEMBLIES, which native AOT does not set.
AssemblyResolver reads the files it finds through -r without passing itself on as their resolver, so facades that forward to another assembly fail to resolve.
This matters because the AOT binary is what the ghcr.io/nullean/assembly-rewriter container runs, and that container is what action.yml uses. The managed builds are fine.
Activity
Mpdreamz commentedon Nov 12, 2026
Broader than NEST: the native-AOT binary fails every real rewrite tried (netstandard1.3, net46, net10.0 inputs) with
AssemblyResolutionException, with or without-r <framework dir>. main's AOT binary fails the same way.Cause:
DefaultAssemblyResolverfinds framework assemblies throughTRUSTED_PLATFORM_ASSEMBLIES, which native AOT does not set.AssemblyResolverreads the files it finds through-rwithout passing itself on as their resolver, so facades that forward to another assembly fail to resolve.This matters because the AOT binary is what the
ghcr.io/nullean/assembly-rewritercontainer runs, and that container is whataction.ymluses. The managed builds are fine.🤖 Generated with Claude Code