Skip to content

Commit 31ba79c

Browse files
committed
- Removed .NET 10 from PR pipeline test runs; it remains for CI pipeline test runs.
- Removed unnecessary System.Text.Json and Microsoft.Win32.Registry package dependencies that were causing pruning warnings. - Updated MDS .nuspec dependencies to match what we actually depend on.
1 parent 38332f3 commit 31ba79c

10 files changed

+24
-37
lines changed

Directory.Packages.props

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
<PackageVersion Include="Microsoft.SqlServer.SqlManagementObjects" Version="172.76.0" />
3232
<PackageVersion Include="Microsoft.SqlServer.Types" Version="160.1000.6" />
3333
<PackageVersion Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.5" />
34-
<PackageVersion Include="Microsoft.Win32.Registry" Version="5.0.0" />
3534
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
3635
<PackageVersion Include="System.Data.Odbc" Version="9.0.9" />
3736
<PackageVersion Include="System.Security.Principal.Windows" Version="5.0.0" />
@@ -69,13 +68,11 @@
6968
<PackageVersion Include="Microsoft.Bcl.Cryptography" Version="9.0.9" />
7069
<PackageVersion Include="System.Configuration.ConfigurationManager" Version="9.0.9" />
7170
<PackageVersion Include="System.Security.Cryptography.Pkcs" Version="9.0.9" />
72-
<PackageVersion Include="System.Text.Json" Version="9.0.9" />
7371
</ItemGroup>
7472
<ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net9.0'))">
7573
<PackageVersion Include="Microsoft.Bcl.Cryptography" Version="8.0.0" />
7674
<PackageVersion Include="System.Configuration.ConfigurationManager" Version="8.0.1" />
7775
<PackageVersion Include="System.Security.Cryptography.Pkcs" Version="8.0.1" />
78-
<PackageVersion Include="System.Text.Json" Version="8.0.6" />
7976
</ItemGroup>
8077
<!-- .NET Dependencies -->
8178
<ItemGroup>
@@ -90,6 +87,7 @@
9087
<PackageVersion Include="System.Diagnostics.DiagnosticSource" Version="8.0.1" />
9188
<PackageVersion Include="System.Memory" Version="4.6.3" />
9289
<PackageVersion Include="System.Text.Encodings.Web" Version="8.0.0" />
90+
<PackageVersion Include="System.Text.Json" Version="8.0.6" />
9391
<PackageVersion Include="System.ValueTuple" Version="4.6.1" />
9492
<PackageVersion Include="System.Threading.Channels" Version="8.0.0" />
9593
</ItemGroup>

eng/pipelines/dotnet-sqlclient-ci-core.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ stages:
320320
windows_sql_22_named_instance:
321321
pool: ${{parameters.defaultPoolName }}
322322
images:
323-
Win22_Sql22_named_instance: ADO-MMS22-SQL22-WITH-NAMED-INSTANCE
323+
Win22_Sql22_Named_Instance: ADO-MMS22-SQL22-WITH-NAMED-INSTANCE
324324
TargetFrameworks: ${{parameters.targetFrameworks }}
325325
netcoreVersionTestUtils: ${{parameters.netcoreVersionTestUtils }}
326326
buildPlatforms: ${{parameters.buildPlatforms }}
@@ -344,7 +344,7 @@ stages:
344344
pool: ${{parameters.defaultPoolName }}
345345
images:
346346
Win22_Azure_Sql: ADO-MMS22-SQL19
347-
win11_Azure_Sql: ADO-CI-Win11
347+
Win11_Azure_Sql: ADO-CI-Win11
348348
TargetFrameworks: ${{parameters.targetFrameworks }}
349349
netcoreVersionTestUtils: ${{parameters.netcoreVersionTestUtils }}
350350
buildPlatforms: ${{parameters.buildPlatforms }}
@@ -376,7 +376,7 @@ stages:
376376
windows_azure_arm64_sql:
377377
pool: ADO-CI-PUBLIC-ARM64-1ES-EUS-POOL
378378
images:
379-
Win22_Azure_ARM64_Sql: ADO-WIN11-ARM64
379+
Win11_ARM64_Azure_Sql: ADO-WIN11-ARM64
380380
TargetFrameworks: ${{parameters.targetFrameworks }}
381381
netcoreVersionTestUtils: ${{parameters.netcoreVersionTestUtils }}
382382
buildPlatforms: ${{parameters.buildPlatforms }}

eng/pipelines/sqlclient-pr-package-ref-pipeline.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,19 +85,25 @@ parameters:
8585
#
8686
# These are _not_ the target frameworks to build the driver packages for.
8787
#
88+
# Note: We are excluding .NET 10.0 here to avoid consuming too many resources
89+
# during PR pipeline runs. The periodic CI pipeline runs include .NET 10.0.
90+
#
8891
- name: targetFrameworks
8992
displayName: Target Frameworks on Windows
9093
type: object
91-
default: [net462, net8.0, net9.0, net10.0]
94+
default: [net462, net8.0, net9.0]
9295

9396
# The target frameworks to build and run tests for on Unix.
9497
#
9598
# These are _not_ the target frameworks to build the driver packages for.
9699
#
100+
# Note: We are excluding .NET 10.0 here to avoid consuming too many resources
101+
# during PR pipeline runs. The periodic CI pipeline runs include .NET 10.0.
102+
#
97103
- name: targetFrameworksUnix
98104
displayName: Target Frameworks on Unix
99105
type: object
100-
default: [net8.0, net9.0, net10.0]
106+
default: [net8.0, net9.0]
101107

102108
- name: testSets
103109
displayName: Test Sets

eng/pipelines/sqlclient-pr-project-ref-pipeline.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,19 +85,25 @@ parameters:
8585
#
8686
# These are _not_ the target frameworks to build the driver packages for.
8787
#
88+
# Note: We are excluding .NET 10.0 here to avoid consuming too many resources
89+
# during PR pipeline runs. The periodic CI pipeline runs include .NET 10.0.
90+
#
8891
- name: targetFrameworks
8992
displayName: Target Frameworks on Windows
9093
type: object
91-
default: [net462, net8.0, net9.0, net10.0]
94+
default: [net462, net8.0, net9.0]
9295

9396
# The target frameworks to build and run tests for on Unix.
9497
#
9598
# These are _not_ the target frameworks to build the driver packages for.
9699
#
100+
# Note: We are excluding .NET 10.0 here to avoid consuming too many resources
101+
# during PR pipeline runs. The periodic CI pipeline runs include .NET 10.0.
102+
#
97103
- name: targetFrameworksUnix
98104
displayName: Target Frameworks on Unix
99105
type: object
100-
default: [net8.0, net9.0, net10.0]
106+
default: [net8.0, net9.0]
101107

102108
- name: testSets
103109
displayName: Test Sets

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
error. This list should be used sparingly to avoid important warnings
100100
being ignored.
101101
-->
102-
<WarningsNotAsErrors Condition="$(MSBuildRuntimeType) == 'Full'">NU1510</WarningsNotAsErrors>
102+
<WarningsNotAsErrors></WarningsNotAsErrors>
103103

104104
<!--
105105
If a build is failing due to vulnerable dependencies, you may temporarily

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@
4545

4646
</ItemGroup>
4747

48-
<!-- System.Text.Json is included in .NET 10+ BCL -->
49-
<ItemGroup Condition="$([MSBuild]::VersionLessThan($([MSBuild]::GetTargetFrameworkVersion($(TargetFramework))), '10.0'))">
50-
<PackageReference Include="System.Text.Json" />
51-
</ItemGroup>
52-
5348
<!-- netstandard dependencies -->
5449
<ItemGroup Condition="'$(TargetGroup)' != 'netcoreapp'">
5550
<PackageReference Include="System.Threading.Channels" />

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,11 +1106,6 @@
11061106
<PackageReference Include="System.Security.Cryptography.Pkcs" />
11071107
</ItemGroup>
11081108

1109-
<!-- System.Text.Json is included in .NET 10+ BCL -->
1110-
<ItemGroup Condition="$([MSBuild]::VersionLessThan($([MSBuild]::GetTargetFrameworkVersion($(TargetFramework))), '10.0'))">
1111-
<PackageReference Include="System.Text.Json" />
1112-
</ItemGroup>
1113-
11141109
<Import Project="$(ToolsDir)targets\GenerateThisAssemblyCs.targets" />
11151110
<Import Project="$(ToolsDir)targets\ResolveContract.targets" Condition="'$(OSGroup)' == 'AnyOS'" />
11161111
<Import Project="$(ToolsDir)targets\NotSupported.targets" Condition="'$(OSGroup)' == 'AnyOS'" />

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@
5454
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
5555
<Utf8Output>True</Utf8Output>
5656
<ErrorReport>None</ErrorReport>
57-
58-
<!-- This code analysis ruleset only exists with the .NET Framework toolset. -->
59-
<CodeAnalysisRuleSet Condition="$(MSBuildRuntimeType) == 'Full'">MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
60-
6157
<BuildProjectReferences>True</BuildProjectReferences>
6258
<GenerateAssemblyRefs>True</GenerateAssemblyRefs>
6359
<DefineConstants>$(DefineConstants);USEOFFSET;CODE_ANALYSIS_BASELINE;FEATURE_LEGACYSURFACEAREA;FEATURE_UTF32;FEATURE_UTF7;TRACE;</DefineConstants>

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,6 @@
331331
<PackageReference Include="Microsoft.DotNet.RemoteExecutor" />
332332
<PackageReference Include="Microsoft.DotNet.XUnitExtensions" />
333333
</ItemGroup>
334-
<ItemGroup>
335-
<PackageReference Condition="$(ReferenceType.Contains('Package'))" Include="Microsoft.Win32.Registry" />
336-
</ItemGroup>
337334
<ItemGroup>
338335
<ProjectReference Include="$(AddOnsPath)AzureKeyVaultProvider\Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider.csproj" />
339336
<PackageReference Include="Azure.Identity" />

tools/specs/Microsoft.Data.SqlClient.nuspec

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@
3737
<dependency id="Microsoft.IdentityModel.JsonWebTokens" version="8.14.0" />
3838
<dependency id="Microsoft.IdentityModel.Protocols.OpenIdConnect" version="8.14.0" />
3939
<dependency id="System.Buffers" version="4.6.1" />
40-
<dependency id="System.Data.Common" version="4.3.0" />
4140
<dependency id="System.Diagnostics.DiagnosticSource" version="8.0.1" />
42-
<dependency id="System.Runtime.InteropServices.RuntimeInformation" version="4.3.0" />
41+
<dependency id="System.Memory" version="4.6.3" />
4342
<dependency id="System.Security.Cryptography.Pkcs" version="8.0.1" />
4443
<dependency id="System.Text.Encodings.Web" version="8.0.0" />
4544
<dependency id="System.Text.Json" version="8.0.6" />
4645
<dependency id="System.Threading.Channels" version="8.0.0" />
46+
<dependency id="System.ValueTuple" version="4.6.1" />
4747
</group>
4848
<group targetFramework="net8.0">
4949
<dependency id="Azure.Core" version="1.49.0" />
@@ -55,23 +55,19 @@
5555
<dependency id="Microsoft.IdentityModel.Protocols.OpenIdConnect" version="8.14.0" />
5656
<dependency id="Microsoft.SqlServer.Server" version="1.0.0" />
5757
<dependency id="System.Configuration.ConfigurationManager" version="8.0.1" exclude="Compile" />
58-
<dependency id="System.Runtime.InteropServices.RuntimeInformation" version="4.3.0" />
5958
<dependency id="System.Security.Cryptography.Pkcs" version="8.0.1" />
60-
<dependency id="System.Text.Json" version="8.0.6" />
6159
</group>
6260
<group targetFramework="net9.0">
6361
<dependency id="Azure.Core" version="1.49.0" />
6462
<dependency id="Azure.Identity" version="1.16.0" />
6563
<dependency id="Microsoft.Bcl.Cryptography" version="9.0.9" />
6664
<dependency id="Microsoft.Data.SqlClient.SNI.runtime" version="6.0.2" exclude="Compile" />
67-
<dependency id="Microsoft.Extensions.Caching.Memory" version="9.0.5" exclude="Compile" />
65+
<dependency id="Microsoft.Extensions.Caching.Memory" version="9.0.9" exclude="Compile" />
6866
<dependency id="Microsoft.IdentityModel.JsonWebTokens" version="8.14.0" />
6967
<dependency id="Microsoft.IdentityModel.Protocols.OpenIdConnect" version="8.14.0" />
7068
<dependency id="Microsoft.SqlServer.Server" version="1.0.0" />
7169
<dependency id="System.Configuration.ConfigurationManager" version="9.0.9" exclude="Compile" />
72-
<dependency id="System.Runtime.InteropServices.RuntimeInformation" version="4.3.0" />
7370
<dependency id="System.Security.Cryptography.Pkcs" version="9.0.9" />
74-
<dependency id="System.Text.Json" version="9.0.9" />
7571
</group>
7672
<group targetFramework="netstandard2.0">
7773
<dependency id="Azure.Core" version="1.49.0" />
@@ -83,9 +79,7 @@
8379
<dependency id="Microsoft.IdentityModel.Protocols.OpenIdConnect" version="8.14.0" />
8480
<dependency id="Microsoft.SqlServer.Server" version="1.0.0" />
8581
<dependency id="System.Configuration.ConfigurationManager" version="8.0.1" exclude="Compile" />
86-
<dependency id="System.Runtime.InteropServices.RuntimeInformation" version="4.3.0" />
8782
<dependency id="System.Security.Cryptography.Pkcs" version="8.0.1" />
88-
<dependency id="System.Text.Json" version="8.0.6" />
8983
<dependency id="System.Threading.Channels" version="8.0.0" />
9084
</group>
9185
</dependencies>

0 commit comments

Comments
 (0)