Skip to content

Reference to type 'SqlConnection' claims it is defined in 'System.Data', but it could not be found. #25088

Description

@firefixmaarten

dotnet --version: 2.1.4
uname -a: Linux firefixmaarten 4.15.3-300.fc27.x86_64 dotnet/corefx#1 SMP Tue Feb 13 17:02:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Also tested on windows 10:

<ItemGroup>
    <PackageReference Include="EnterpriseLibrary.WindowsAzure.TransientFaultHandling" Version="5.1.1212.0" />
    <PackageReference Include="log4net" Version="2.0.8" />
    <PackageReference Include="Lz4.Net" Version="1.0.98" />
    <PackageReference Include="MongoDB.Driver" Version="2.5.0" />
    <PackageReference Include="Newtonsoft.Json" Version="11.0.1" />
    <PackageReference Include="Newtonsoft.Json.Schema" Version="3.0.6" />
    <PackageReference Include="ServiceStack.Text" Version="5.0.2" />
    <PackageReference Include="System.Data.SqlClient" Version="4.4.2" />
    <PackageReference Include="WindowsAzure.ServiceBus" Version="4.1.7" />
    <PackageReference Include="WindowsAzure.Storage" Version="9.0.0" />
</ItemGroup>

Getting this error everywhere:
Reference to type 'SqlConnection' claims it is defined in 'System.Data', but it could not be found [commonlib]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions