Skip to content

Commit 972a7f0

Browse files
committed
Merge main
2 parents 85f345b + 9bce6ad commit 972a7f0

File tree

94 files changed

+1725
-1432
lines changed

Some content is hidden

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

94 files changed

+1725
-1432
lines changed

.config/CredScanSuppressions.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212
{
1313
"file": "doc/samples/SqlConnectionStringBuilder.cs",
1414
"justification": "Documentation could include sample data and can be ignored"
15+
},
16+
{
17+
"file": "src/Microsoft.Data.SqlClient/tests/UnitTests/Fixtures/AlwaysEncrypted/NativeColumnEncryptionKeyCertificateBaselineFixture.cs",
18+
"justification": "Test projects should be skipped"
19+
},
20+
{
21+
"file": "src/Microsoft.Data.SqlClient/tests/UnitTests/Resources/AlwaysEncrypted/NativeColumnEncryptionKeyBaseline/Certificate.pfx",
22+
"justification": "Test projects should be skipped"
1523
}
1624
]
1725
}

build.proj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,13 @@
153153
<MSBuild Projects="@(NetCoreDriver)" Properties="$(CI);$(ProjectProperties);Platform=AnyCPU;OSGroup=Windows_NT;" RemoveProperties="TargetsWindows;TargetsUnix;" Condition="'$(IsEnabledWindows)' == 'true'" />
154154
<MSBuild Projects="@(NetCoreDriver)" Properties="$(CI);$(ProjectProperties);Platform=AnyCPU;OSGroup=AnyOS;" RemoveProperties="TargetsWindows;TargetsUnix;" />
155155
</Target>
156+
157+
<Target Name="BuildNetCoreUnix" DependsOnTargets="RestoreNetCore">
158+
<MSBuild Projects="@(NetCoreDriver)"
159+
Properties="$(CI);$(ProjectProperties);Platform=AnyCPU;OSGroup=Unix;"
160+
RemoveProperties="TargetsWindows;TargetsUnix;" />
161+
</Target>
162+
156163
<!-- Build .NET Standard target DLLs for Lib folder from here.
157164
This target enables BuildForLib for the NetCore ref project. -->
158165
<Target Name="BuildNetStandard">

eng/pipelines/common/templates/jobs/ci-code-coverage-job.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ parameters:
3333
# True to upload code coverage results to CodeCov.
3434
- name: upload
3535
type: boolean
36-
default: true
3736

3837
jobs:
3938
- job: CodeCoverage

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,14 @@ stages:
171171
image: ADO-MMS22-CodeCov
172172
pool: ${{ parameters.defaultPoolName }}
173173
targetFrameworks: ${{ parameters.codeCovTargetFrameworks }}
174+
# This is a Pipeline Variable defined in the Azure DevOps UI. It
175+
# must be defined with a true/false value for all pipelines that
176+
# specify a build type of 'Project'.
177+
#
178+
# You can find Pipeline Variables by visiting the main page of the
179+
# pipeline and choosing Edit -> Variables.
180+
#
181+
upload: ${{ eq(variables.ci_var_uploadTestResult, 'true') }}
174182

175183
# test stages configurations
176184
# self hosted SQL Server on Windows

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

Lines changed: 302 additions & 316 deletions
Large diffs are not rendered by default.

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

Lines changed: 236 additions & 220 deletions
Large diffs are not rendered by default.

src/Microsoft.Data.SqlClient/src/Interop/Windows/Handles/SafeLibraryHandle.netcore.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
using Microsoft.Win32.SafeHandles;
5+
#if NET && _WINDOWS
66

7-
#if NET
7+
using Microsoft.Win32.SafeHandles;
88

99
namespace Interop.Windows.Handles
1010
{

src/Microsoft.Data.SqlClient/src/Interop/Windows/Kernel32/FileTypes.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5+
#if _WINDOWS
6+
57
namespace Interop.Windows.Kernel32
68
{
79
internal class FileTypes
@@ -12,3 +14,5 @@ internal class FileTypes
1214
internal const int FILE_TYPE_PIPE = 0x0003;
1315
}
1416
}
17+
18+
#endif

src/Microsoft.Data.SqlClient/src/Interop/Windows/Kernel32/IoControlCodeAccess.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5+
#if _WINDOWS
6+
57
using System;
68

79
namespace Interop.Windows.Kernel32
@@ -31,3 +33,5 @@ public enum IoControlCodeAccess
3133
FILE_WRITE_DATA = 0x02
3234
}
3335
}
36+
37+
#endif

src/Microsoft.Data.SqlClient/src/Interop/Windows/Kernel32/IoControlTransferType.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5+
#if _WINDOWS
6+
57
namespace Interop.Windows.Kernel32
68
{
79
/// <summary>
@@ -35,3 +37,5 @@ public enum IoControlTransferType
3537
METHOD_NEITHER
3638
}
3739
}
40+
41+
#endif

0 commit comments

Comments
 (0)