Skip to content

Missing Key, Value in Nuget.config on System.Data.SqlClient to Microsoft.Data.SqlClient porting cheat sheet  #2647

@eilonik

Description

@eilonik

Describe the bug

Hello,
I'm following the cheat sheet to migrate from System.Data.SqlClient to Microsoft.Data.SqlClient, and after adding the required configuration and building I'm getting the following error messages:

Exception message:

Build FAILED.

C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets(694,5): error : Unable to parse config file because: Missing required attribute 'key' in element 'add'.

And

C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets(694,5): error : Unable to parse config file because: Missing required attribute 'value' in element 'add'.

Adding random key and value properties solved this issue. is there a specific key: value pair that needs to be used in this case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions