To reproduce
-
dotnet build -
dotnet run --project Runner/Runner.csproj --framework net6.0Note : There are also targets for
net5.0andnet48 -
Wait for the program to end.
If the issue happened you'll see something like
Assemblies were not equal!!!
asm1.GetHashCode() = 4032828
asm2.GetHashCode() = 37489757
Default ALC contains asm1 = False
Default ALC contains asm2 = True
Run 76 complete
Quiting because behavior was reproduced
If the issue doesn't happen, you'll see
Quiting. The issue never happened
If the issue doesn't happen, there are some parameters you can tweak at the top of Runner/Program.cs that may make it easier to reproduce
Bug report dotnet/runtime#70742