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
In this discussion, it was mentioned that a mismatch between the reference assembly at crossgen2 time and the assembly at runtime should result in a fail-fast behavior.
The following repro results in a corrupted execution. A different scenario of ours also resulted in Access Violation.
Repro:
Have 6.0.6 runtime installed
Build this project and run from the published folder
Program.cs
HashSet<int> xs = new() { 3, 7, 17, 37, 79 };
foreach (var x in xs)
{
Console.WriteLine(x);
}
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
at System.Collections.Generic.HashSet`1.Enumerator..ctor(HashSet`1 hashSet)
at Program.<Main>$(String[] args) in C:\Users\user\source\repos\ConsoleAppCrossgen\ConsoleAppCrossgen\Program.cs:line 2
The text was updated successfully, but these errors were encountered:
Description
In this discussion, it was mentioned that a mismatch between the reference assembly at crossgen2 time and the assembly at runtime should result in a fail-fast behavior.
The following repro results in a corrupted execution. A different scenario of ours also resulted in Access Violation.
Repro:
published
folderProgram.cs
csproj
The text was updated successfully, but these errors were encountered: