Skip to content

Commit 85ba241

Browse files
authored
Remove stale dependencies from SqlClient (#2186)
1 parent 55eb130 commit 85ba241

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@
969969
<PackageReference Condition="$(TargetGroup) == 'netstandard' and '$(TargetsWindows)' == 'true' and '$(IsUAPAssembly)' != 'true'" Include="Microsoft.Win32.Registry" Version="$(MicrosoftWin32RegistryVersion)" />
970970
<PackageReference Include="System.Configuration.ConfigurationManager" Version="$(SystemConfigurationConfigurationManagerVersion)" />
971971
<PackageReference Include="System.Security.Permissions" Version="$(SystemSecurityPermissionsVersion)" />
972-
<PackageReference Include="System.Security.Principal.Windows" Version="$(SystemSecurityPrincipalWindowsVersion)" />
972+
<PackageReference Condition="$(TargetGroup) == 'netstandard'" Include="System.Security.Principal.Windows" Version="$(SystemSecurityPrincipalWindowsVersion)" />
973973
<PackageReference Include="System.Text.Encoding.CodePages" Version="$(SystemTextEncodingCodePagesVersion)" />
974974
<PackageReference Include="System.Text.Encodings.Web" Version="$(SystemTextEncodingsWebVersion)" />
975975
<PackageReference Include="Microsoft.Data.SqlClient.SNI.runtime" Version="$(MicrosoftDataSqlClientSNIRuntimeVersion)" />

tools/specs/Microsoft.Data.SqlClient.nuspec

-4
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ When using NuGet 3.x this package requires at least version 3.4.</description>
5050
<dependency id="System.Runtime.Caching" version="6.0.0" exclude="Compile" />
5151
<dependency id="System.Text.Encoding.CodePages" version="6.0.0" exclude="Compile" />
5252
<dependency id="System.Text.Encodings.Web" version="6.0.0" />
53-
<dependency id="System.Security.Cryptography.Cng" version="5.0.0" />
54-
<dependency id="System.Security.Principal.Windows" version="5.0.0" exclude="Compile" />
5553
</group>
5654
<group targetFramework="net6.0">
5755
<dependency id="Microsoft.Data.SqlClient.SNI.runtime" version="5.1.1" exclude="Compile" />
@@ -64,8 +62,6 @@ When using NuGet 3.x this package requires at least version 3.4.</description>
6462
<dependency id="System.Runtime.Caching" version="6.0.0" exclude="Compile" />
6563
<dependency id="System.Text.Encoding.CodePages" version="6.0.0" exclude="Compile" />
6664
<dependency id="System.Text.Encodings.Web" version="6.0.0" />
67-
<dependency id="System.Security.Cryptography.Cng" version="5.0.0" />
68-
<dependency id="System.Security.Principal.Windows" version="5.0.0" exclude="Compile" />
6965
</group>
7066
<group targetFramework="netstandard2.0">
7167
<dependency id="Microsoft.Data.SqlClient.SNI.runtime" version="5.1.1" exclude="Compile" />

0 commit comments

Comments
 (0)