Skip to content

.NET 7+ Ambiguous Reference #303

@Chris3606

Description

@Chris3606

.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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions