Skip to content

Microsoft.SqlServer.Server.SqlDataRecord defined in multiple assemblies #6

Description

@mgravell

Error CS0433 The type 'SqlDataRecord' exists in both 'Microsoft.Data.SqlClient, Version=1.0.19128.1, Culture=neutral, PublicKeyToken=23ec7fc2d6eaa4a5' and 'System.Data.SqlClient, Version=4.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

Any code that indirectly takes both those libs - which could be anything - becomes largely broken. Suggest it needs a new name (edit: or namespace) in the new lib.

The other solution is extern alias, which a: almost nobody knows how to use, b: doesn't work via reflection find, and c: can't be configured via nuget, which everyone uses these days.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions