Remove literal null evidence from assembly loading
ProprietarySelect the existing non-Evidence Assembly.Load or LoadFrom overload when the obsolete two-argument BCL call passes literal null evidence. Retain the load operation, argument evaluation and resolved target overload. Non-null/computed evidence, other overloads, unresolved calls, lambda/query contexts, discarded comments and conditional snapshots remain unchanged. This API preparation does not choose an AssemblyLoadContext or emulate Framework security policy. LoadFile retains an unconditional Framework ControlEvidence demand and is left for review.
OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net3_0. RemoveNullAssemblyLoadEvidencemod run . --recipe= OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net3_0. RemoveNullAssemblyLoadEvidenceInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.