.NET 7 added an IDictionary<K, V>.AsReadOnly() function (see here).
This directly conflicts with the definition of a similar function that we define in Utility.cs. Therefore, calling .AsReadOnly() in .NET 7 or greater typically causes an ambiguous reference exception that the user must resolve (if both GoRogue and System.Collections.Generic are included).
One possibility is to simply remove the function in the .NET 7 or greater targets.
.NET 7 added an
IDictionary<K, V>.AsReadOnly()function (see here).This directly conflicts with the definition of a similar function that we define in Utility.cs. Therefore, calling
.AsReadOnly()in .NET 7 or greater typically causes an ambiguous reference exception that the user must resolve (if both GoRogue and System.Collections.Generic are included).One possibility is to simply remove the function in the .NET 7 or greater targets.