Skip to content

SQL Connection from within an Extension #557

@EddyPeter

Description

@EddyPeter

Hello people!
I'm fighting and I need real people help. I want to make an Visual Studio 2026 extension with the new Extensibility.Sdk (net8). I try to use Microsoft.Data.SqlClient to make a connection to a server. But no matter what I do I get the error:

Microsoft.Data.SqlClient is not supported on this platform.

In my previously made extension using the Visual Studio VSCT/Toolkit it was not an issue. Is there an example or way to make a SQL Connection using Data.SqlClient in the Extensibility SDK?

I don't know enough about packages but the closest I could find about this issue is: dotnet/SqlClient#2030

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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