Skip to content

Commit 67cbb7b

Browse files
committed
Merge branch 'main' into feat/udt-serialization/tests
2 parents b6e11f8 + 2939649 commit 67cbb7b

File tree

283 files changed

+17548
-6223
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

283 files changed

+17548
-6223
lines changed

.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ indent_size = 4
1414
[*.{json,jsonc}]
1515
indent_size = 2
1616

17+
[*.{yml,yaml}]
18+
indent_size = 2
19+
1720
# C# files
1821
[*.cs]
1922
# New line preferences
@@ -43,6 +46,9 @@ csharp_style_var_for_built_in_types = false:none
4346
csharp_style_var_when_type_is_apparent = false:none
4447
csharp_style_var_elsewhere = false:suggestion
4548

49+
# don't prefer the range operator, netfx doesn't have these types
50+
csharp_style_prefer_range_operator = false
51+
4652
# use language keywords instead of BCL types
4753
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
4854
dotnet_style_predefined_type_for_member_access = true:suggestion

.github/pull_request_template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ High quality descriptions will lead to a smoother review experience.
1414

1515
## Issues
1616

17-
Link to any relevant issues, bugs, or discussions (e.g., "Closes \#123", "Fixes
18-
issue \#456").
17+
Link to any relevant issues, bugs, or discussions (e.g., `Closes #123`, `Fixes
18+
issue #456`).
1919

2020
## Testing
2121

BUILDGUIDE.md

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ Once the environment is setup properly, execute the desired set of commands belo
2222
|`BuildNetCore`|Builds the .NET driver for all target frameworks.|
2323
|`BuildNetCoreAllOS`|Builds the .NET driver for all target frameworks and operating systems.|
2424
|`BuildNetFx`|Builds the .NET Framework driver for all target frameworks.|
25-
|`BuildTests`|Builds tests for the .NET and .NET Framework drivers.|
2625
|`BuildTestsNetCore`|Builds tests for the .NET driver.|
2726
|`BuildTestsNetFx`|Builds tests for the .NET Framework driver.|
2827
|`Clean`|Cleans generated files.|
2928
|`Restore`|Restores Nuget packages.|
30-
|`RunTests`|Runs the functional and manual tests for the .NET Framework and .NET drivers|
29+
|`RunTests`|Runs the unit, functional, and manual tests for the .NET Framework and .NET drivers|
30+
|`RunUnitTests`|Runs just the unit tests for the .NET Framework and .NET drivers|
3131
|`RunFunctionalTests`|Runs just the functional tests for the .NET Framework and .NET drivers|
3232
|`RunManualTests`|Runs just the manual tests for the .NET Framework and .NET drivers|
3333
|`BuildAkv`|Builds the Azure Key Vault Provider package for all supported platforms.|
@@ -51,39 +51,35 @@ Using the default configuration and running all tests:
5151

5252
```bash
5353
msbuild
54-
msbuild -t:BuildTests
54+
msbuild -t:BuildTestsNetFx -p:TF=net462
55+
msbuild -t:BuildTestsNetCore
5556
msbuild -t:RunTests
5657
```
5758

58-
Targeting .NET Framework (or any specific supported version):
59-
60-
```bash
61-
msbuild -p:TF=net462
62-
msbuild -t:BuildTests -p:TF=net462
63-
msbuild -t:RunTests -p:TF=net462
64-
```
65-
6659
Using the Release configuration:
6760

6861
```bash
6962
msbuild -p:configuration=Release
70-
msbuild -t:BuildTests -p:configuration=Release
63+
msbuild -t:BuildTestsNetFx -p:TF=net462 -p:configuration=Release
64+
msbuild -t:BuildTestsNetCore -p:configuration=Release
7165
msbuild -t:RunTests -p:configuration=Release
7266
```
7367

74-
Running only the functional tests:
68+
Running only the unit tests:
7569

7670
```bash
7771
msbuild
78-
msbuild -t:BuildTests
79-
msbuild -t:RunFunctionalTests
72+
msbuild -t:BuildTestsNetFx -p:TF=net462
73+
msbuild -t:BuildTestsNetCore
74+
msbuild -t:RunUnitTests
8075
```
8176

8277
Using a specific dotnet version/architecture:
8378

8479
```bash
8580
msbuild -p:configuration=Release
86-
msbuild -t:BuildTests -p:configuration=Release
81+
msbuild -t:BuildTestsNetFx -p:TF=net462 -p:configuration=Release
82+
msbuild -t:BuildTestsNetCore -p:configuration=Release
8783
msbuild -t:RunTests -p:configuration=Release -p:DotnetPath=C:\net8-win-x86\
8884
```
8985

@@ -224,10 +220,10 @@ msbuild -t:BuildTestsNetCore -p:ReferenceType=Package
224220
For .NET Framework, below reference types are supported:
225221

226222
```bash
227-
msbuild -t:BuildTestsNetFx -p:ReferenceType=Project
223+
msbuild -t:BuildTestsNetFx -p:TF=net462 -p:ReferenceType=Project
228224
# Default setting uses Project Reference.
229225

230-
msbuild -t:BuildTestsNetFx -p:ReferenceType=Package
226+
msbuild -t:BuildTestsNetFx -p:TF=net462 -p:ReferenceType=Package
231227
```
232228

233229
### Running Tests with Reference Type
@@ -245,12 +241,12 @@ Tests can be built and run with custom Target Frameworks. See the below examples
245241
### Building Tests with custom target framework
246242

247243
```bash
248-
msbuild -t:BuildTestsNetFx -p:TargetNetFxVersion=net462
244+
msbuild -t:BuildTestsNetFx -p:TF=net462
249245
# Build the tests for custom .NET Framework target
250246
```
251247

252248
```bash
253-
msbuild -t:BuildTestsNetCore -p:TargetNetCoreVersion=net8.0
249+
msbuild -t:BuildTestsNetCore -p:TF=net8.0
254250
# Build the tests for custom .NET target
255251
```
256252

CHANGELOG.md

Lines changed: 80 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,89 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66

7-
# Release Notes
7+
## [Stable Release 6.1.1] - 2025-08-14
8+
9+
This update includes the following changes since the [6.1.0](6.1.0.md) release:
10+
11+
### Fixed
12+
13+
- Reverted changes related to improving partial packet detection, fixup, and replay functionality. This revert addresses regressions introduced in 6.1.0. ([#3556](https://github.com/dotnet/SqlClient/pull/3556))
14+
- Applied reference assembly corrections supporting vector, fixed JSON tests, and ensured related tests are enabled. [#3562](https://github.com/dotnet/SqlClient/pull/3562)
15+
- Fixed `SqlVector<T>.Null` API signature in Reference assembly. [#3521](https://github.com/dotnet/SqlClient/pull/3521)
16+
17+
### Changed
18+
19+
- Upgraded `Azure.Identity` and other dependencies to newer versions. ([#3538](https://github.com/dotnet/SqlClient/pull/3538)) ([#3552](https://github.com/dotnet/SqlClient/pull/3552))
20+
21+
## [Stable Release 6.1.0] - 2025-07-25
22+
23+
This update brings the following changes since the
24+
[6.1.0-preview2](release-notes/6.1/6.1.0-preview2.md) release:
25+
26+
### Added
27+
28+
No new features were added.
29+
30+
### Fixed
31+
32+
- Fixed missing socket error codes on non-Windows platforms.
33+
([#3475](https://github.com/dotnet/SqlClient/pull/3475))
34+
- Fixed primary/secondary server SPN handling during SSPI negotiation.
35+
([#3478](https://github.com/dotnet/SqlClient/pull/3478))
36+
- Fixed AzureKeyVaultProvider package key caching to serialize Azure key fetch
37+
operations.
38+
([#3477](https://github.com/dotnet/SqlClient/pull/3477))
39+
- Fixed a rare error related to multi-packet async text reads.
40+
([#3474](https://github.com/dotnet/SqlClient/pull/3474))
41+
- Fixed some spelling errors in the API docs.
42+
([#3500](https://github.com/dotnet/SqlClient/pull/3500))
43+
- Fixed a rare multi-packet string corruption bug.
44+
([#3513](https://github.com/dotnet/SqlClient/pull/3513))
45+
46+
### Changed
47+
48+
#### SqlDecimal type workarounds conversions
49+
50+
*What Changed:*
51+
52+
- Changed how SqlDecimal type workarounds perform conversions to meet
53+
compliance policies.
54+
([#3467](https://github.com/dotnet/SqlClient/pull/3467))
55+
56+
*Who Benefits:*
57+
58+
- Microsoft products must not use undocumented APIs on other Microsoft products.
59+
This change removes calls to undocumented APIs and replaces them with
60+
compliant API use.
61+
62+
*Impact:*
63+
64+
- These changes impose an observed 5% decrease in performance on .NET Framework.
65+
66+
#### SqlVector API improvements
67+
68+
*What Changed:*
69+
70+
- Several changes were made to the SqlVector API published in the
71+
[6.1.0-preview2](release-notes/6.1/6.1.0-preview2.md) release
72+
([#3472](https://github.com/dotnet/SqlClient/pull/3472)):
73+
- The SqlVector class was changed to a readonly struct.
74+
- The null value constructor was changed to a static `CreateNull()` method.
75+
- The `Size` property was removed.
76+
77+
*Who Benefits:*
78+
79+
- SqlVector instances gain the efficiencies of struct handling.
80+
81+
*Impact:*
82+
83+
- Early-adopter applications may require updates if they rely on the old APIs
84+
and any class-specific behaviour.
885

986
## [Preview Release 6.1.0-preview2.25178.5] - 2025-06-27
1087

11-
This update brings the following changes since the [6.1.0-preview1](release-notes/6.1/6.1.0-preview1.md) release:
88+
This update brings the following changes since the
89+
[6.1.0-preview1](release-notes/6.1/6.1.0-preview1.md) release:
1290

1391
### Added
1492

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
General contribution guidance is included in this document. Additional guidance is defined in the documents linked below.
44

5-
- [Copyright](copyright.md) describes the licensing practices for the project.
5+
- [Copyright](COPYRIGHT.md) describes the licensing practices for the project.
66
- [Contribution Workflow](contributing-workflow.md) describes the workflow that the team uses for considering and accepting changes.
77

88
## Up for Grabs

RunPackageReferenceTests.cmd

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)