System.InvalidOperationException: Could not execute the method because either the method itself or the containing type is not fully instantiated. · Issue #103891 · dotnet/runtime · GitHub
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
System.InvalidOperationException: Could not execute the method because either the method itself or the containing type is not fully instantiated. #103891
dotnet run
App cctor!
Unhandled exception. System.InvalidOperationException: Could not execute the method because either the method itself or the containing type is not fully instantiated.
at C`1..cctor()
at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(RuntimeTypeHandle type)
at App.Main() in /Users/rolf/test/dotnet/console/Program.cs:line 8
Regression?
Yes, this works in .NET 8 and 9.0.0-preview.5.24256.1, but fails with 9.0.100-preview.6.24320.12