Skip to content

Commit b3dae93

Browse files
committed
- Removed Pkcs from .NET Framework.
1 parent bfaef22 commit b3dae93

7 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/Directory.Packages.props

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<PackageVersion Include="xunit.runner.console" Version="2.9.3" />
4646
</ItemGroup>
4747

48-
<!-- Target framework specific dependencies -->
48+
<!-- .NET 9.0 Dependencies -->
4949
<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
5050
<!-- Driver dependencies -->
5151
<PackageVersion Include="Microsoft.Extensions.Caching.Memory" Version="9.0.11" />
@@ -56,14 +56,19 @@
5656
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="9.0.11" />
5757
<PackageVersion Include="System.Data.Odbc" Version="9.0.11" />
5858
</ItemGroup>
59-
<ItemGroup Condition="'$(TargetFramework)' != 'net9.0'">
59+
<!-- .NET Framework, .NET Standard 2.0, and .NET 8.0 Dependencies -->
60+
<ItemGroup Condition="'$(TargetFramework)' == 'net462' OR '$(TargetFramework)' == 'netstandard2.0' OR '$(TargetFramework)' == 'net8.0'">
6061
<!-- Driver dependencies -->
6162
<PackageVersion Include="Microsoft.Extensions.Caching.Memory" Version="8.0.1" />
62-
<PackageVersion Include="System.Configuration.ConfigurationManager" Version="8.0.1" />
63-
<PackageVersion Include="System.Security.Cryptography.Pkcs" Version="8.0.1" />
6463

6564
<!-- Test dependencies -->
6665
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="8.0.1" />
6766
<PackageVersion Include="System.Data.Odbc" Version="8.0.1" />
6867
</ItemGroup>
68+
<!-- .NET Standard 2.0, and .NET 8.0 Dependencies -->
69+
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' OR '$(TargetFramework)' == 'net8.0'">
70+
<!-- Driver dependencies -->
71+
<PackageVersion Include="System.Configuration.ConfigurationManager" Version="8.0.1" />
72+
<PackageVersion Include="System.Security.Cryptography.Pkcs" Version="8.0.1" />
73+
</ItemGroup>
6974
</Project>

src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" />
4343
<PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" />
4444
<PackageReference Include="System.Buffers" />
45-
<PackageReference Include="System.Security.Cryptography.Pkcs" />
4645
<PackageReference Include="System.Text.Json" />
4746
</ItemGroup>
4847
<Import Project="$(ToolsDir)targets\TrimDocsForIntelliSense.targets" />

src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,6 @@
965965
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" />
966966
<PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" />
967967
<PackageReference Include="System.Buffers" />
968-
<PackageReference Include="System.Security.Cryptography.Pkcs" />
969968
<PackageReference Include="System.Text.Json" />
970969
</ItemGroup>
971970
<Import Project="$(CommonSourceRoot)tools\targets\GenerateResourceStringsSource.targets" />

src/Microsoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.FunctionalTests.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,9 @@
9191
<PackageReference Include="Microsoft.NET.Test.Sdk" />
9292
<PackageReference Include="Microsoft.SqlServer.Types" />
9393
<PackageReference Include="Newtonsoft.Json" />
94-
<PackageReference Include="System.Configuration.ConfigurationManager" />
95-
<PackageReference Include="System.Security.Cryptography.Pkcs" />
9694
</ItemGroup>
9795
<ItemGroup Condition="'$(TargetGroup)' == 'netcoreapp'">
96+
<PackageReference Include="System.Configuration.ConfigurationManager" />
9897
<PackageReference Include="System.Data.Odbc" />
9998
</ItemGroup>
10099
<ItemGroup Condition="'$(TargetGroup)' == 'netfx'">

src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTesting.Tests.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,6 @@
349349
<PackageReference Include="Azure.Identity" />
350350
<PackageReference Include="Microsoft.NET.Test.Sdk" />
351351
<PackageReference Include="Microsoft.SqlServer.Types" />
352-
<PackageReference Include="System.Configuration.ConfigurationManager" />
353-
<PackageReference Include="System.Security.Cryptography.Pkcs" />
354352
<PackageReference Include="System.ServiceProcess.ServiceController" />
355353
</ItemGroup>
356354
<ItemGroup Condition="'$(TargetGroup)'=='netfx'">
@@ -366,6 +364,7 @@
366364
</ItemGroup>
367365
<ItemGroup Condition="'$(TargetGroup)'=='netcoreapp'">
368366
<PackageReference Include="Microsoft.DotNet.RemoteExecutor" />
367+
<PackageReference Include="System.Configuration.ConfigurationManager" />
369368
</ItemGroup>
370369
<ItemGroup>
371370
<None Update="makepfxcert.ps1">

src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft.Data.SqlClient.UnitTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
</PropertyGroup>
1111
<!-- Common references -->
1212
<ItemGroup>
13-
<PackageReference Include="System.Configuration.ConfigurationManager" />
1413
<PackageReference Include="Microsoft.NET.Test.Sdk" />
1514
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Condition="$(TargetGroup) == 'netfx'">
1615
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
@@ -39,6 +38,7 @@
3938
</ItemGroup>
4039
<!-- .NET references -->
4140
<ItemGroup Condition="'$(TargetGroup)'=='netcoreapp'">
41+
<PackageReference Include="System.Configuration.ConfigurationManager" />
4242
<ProjectReference Include="$(NetCoreSource)src\Microsoft.Data.SqlClient.csproj" />
4343
</ItemGroup>
4444
<ItemGroup>

src/Microsoft.Data.SqlClient/tests/tools/Microsoft.Data.SqlClient.TestUtilities/Microsoft.Data.SqlClient.TestUtilities.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@
1515
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
1616
</None>
1717
<PackageReference Include="Newtonsoft.Json" />
18-
<PackageReference Include="System.Security.Cryptography.Pkcs" />
1918
</ItemGroup>
2019
</Project>

0 commit comments

Comments
 (0)