Avoid loading types during main method bootstrap (#56)

This commit is contained in:
Patrick Stevens
2025-06-19 00:41:01 +01:00
committed by GitHub
parent 1ac5f01a3c
commit 53929192f4

View File

@@ -81,7 +81,10 @@ module Program =
(Option.toObj baseClassTypes) (Option.toObj baseClassTypes)
state._LoadedAssemblies state._LoadedAssemblies
dumped dumped
mainMethod // pretend there are no instructions, so we avoid preparing anything
{ mainMethod with
Instructions = None
}
None None
(ImmutableArray.CreateRange [ CliType.ObjectRef None ]) (ImmutableArray.CreateRange [ CliType.ObjectRef None ])
None None