GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — - Added global.json to restrict our SDK to the single supported versi… · iplus-framework/SqlClient@410afa7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .config
    • CredScanSuppressions.json
  • .editorconfig
  • .github/workflows
    • codeql.yml
  • BUILDGUIDE.md
  • README.md
  • eng/pipelines
    • common/templates
      • jobs
        • ci-build-nugets-job.yml
        • ci-code-coverage-job.yml
        • ci-run-tests-job.yml
      • stages
        • ci-run-tests-stage.yml
      • steps
        • build-all-configurations-signed-dlls-step.yml
        • ci-prebuild-step.yml
        • ci-project-build-step.yml
        • ensure-dotnet-version.yml
        • pre-build-step.yml
        • prepare-test-db-step.yml
    • dotnet-sqlclient-ci-core.yml
    • jobs
      • stress-tests-ci-job.yml
    • stages
      • stress-tests-ci-stage.yml
    • steps
      • compound-build-akv-step.yml
      • install-dotnet-arm64.ps1
      • install-dotnet.yml
  • global.json
  • src
    • Microsoft.Data.SqlClient.sln
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.config/CredScanSuppressions.json‎

Copy file name to clipboardExpand all lines: .config/CredScanSuppressions.json
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"tool": "Credential Scanner",
3-
"suppressions": [
3+
"suppressions":
4+
[
45
{
56
"file": "src/Microsoft.Data.SqlClient/tests/tools/TDS/TDS.Servers/TDSServerArguments.cs",
67
"justification": "Test projects should be skipped"
Collapse file

‎.editorconfig‎

Copy file name to clipboardExpand all lines: .editorconfig
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ indent_size = 2
167167

168168
# Shell scripts
169169
[*.sh]
170+
indent_size = 2
170171
end_of_line = lf
171172

172-
[*.{cmd, bat}]
173+
[*.{bat,cmd,ps1}]
174+
indent_size = 2
173175
end_of_line = crlf
Collapse file

‎.github/workflows/codeql.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/codeql.yml
+1-5Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,7 @@ jobs:
6060
- name: Setup .NET Core SDK
6161
uses: actions/[email protected]
6262
with:
63-
# TODO: Update this to .NET 10 once PR #3686 is complete.
64-
# TODO: Replace this with global-json-file once PR #3797 is complete.
65-
dotnet-version: 9.x
66-
dotnet-quality: ga
67-
#global-json-file: global.json
63+
global-json-file: global.json
6864

6965
# Initializes the CodeQL tools for scanning.
7066
- name: Initialize CodeQL
Collapse file

‎BUILDGUIDE.md‎

Copy file name to clipboardExpand all lines: BUILDGUIDE.md
+9Lines changed: 9 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
This document provides all the necessary details to build the driver and run tests present in the repository.
44

5+
## .NET SDK
6+
7+
The projects in this repo require the .NET 10.0 SDK to build. Please ensure you
8+
have the latest version of that SDK installed.
9+
10+
Tests and tools may require different .NET Runtimes that may be installed
11+
independently. For example, tests targeting .NET 8.0 will need that runtime
12+
installed.
13+
514
## Visual Studio Pre-Requisites
615

716
This project should be built with Visual Studio 2019+ for the best compatibility. The required set of components are provided in the below file:
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ When targeting .NET on Windows, a package reference to [Microsoft.Data.SqlClient
2727

2828
| Topic | Link to File |
2929
| :---- | :------------- |
30-
| Coding Style | [coding-style.md](/policy/coding-style.md) |
3130
| Best Practices | [coding-best-practices.md](/policy/coding-best-practices.md) |
32-
| Review Process | [review-process.md](/policy/review-process.md) |
33-
| Guidelines for building the driver | [BUILDGUIDE.md](BUILDGUIDE.md) |
34-
| Guidelines for Contributors | [CONTRIBUTING.md](CONTRIBUTING.md) |
35-
| Changelog for all driver releases | [CHANGELOG.md](CHANGELOG.md) |
36-
| Support Policy | [SUPPORT.md](SUPPORT.md) |
31+
| Build Guide | [BUILDGUIDE.md](/BUILDGUIDE.md) |
32+
| Changelog | [CHANGELOG.md](CHANGELOG.md) |
3733
| Code of Conduct | [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) |
34+
| Coding Style | [coding-style.md](/policy/coding-style.md) |
35+
| Contributing | [CONTRIBUTING.md](CONTRIBUTING.md) |
3836
| Copyright Information | [COPYRIGHT.md](COPYRIGHT.md) |
37+
| Review Process | [review-process.md](/policy/review-process.md) |
38+
| Support Policy | [SUPPORT.md](SUPPORT.md) |
3939

4040
## Our Featured Contributors
4141

Collapse file

‎eng/pipelines/common/templates/jobs/ci-build-nugets-job.yml‎

Copy file name to clipboardExpand all lines: eng/pipelines/common/templates/jobs/ci-build-nugets-job.yml
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ jobs:
4646
- ${{ if ne(parameters.prebuildSteps, '') }}:
4747
- ${{ parameters.prebuildSteps }} # extra steps to run before the build like downloading sni and the required configuration
4848

49+
# Install the .NET SDK.
50+
- template: /eng/pipelines/steps/install-dotnet.yml@self
51+
4952
# When we're performing a Debug build, we still want to try _compiling_ the
5053
# code in Release mode to ensure downstream pipelines don't encounter
5154
# compilation errors. We won't use the Release artifacts for anything else
Collapse file

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

Copy file name to clipboardExpand all lines: eng/pipelines/common/templates/jobs/ci-code-coverage-job.yml
+4-8Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,12 @@ jobs:
5959
- pwsh: 'Get-ChildItem env: | Sort-Object Name'
6060
displayName: '[Debug] List Environment Variables'
6161

62-
- template: ../steps/ensure-dotnet-version.yml@self
62+
# Install the .NET SDK.
63+
- template: /eng/pipelines/steps/install-dotnet.yml@self
6364
parameters:
64-
packageType: sdk
65-
version: '10.0'
66-
67-
- template: ../steps/ensure-dotnet-version.yml@self
68-
parameters:
69-
packageType: runtime
70-
version: '9.0'
65+
debug: ${{ parameters.debug }}
7166

67+
# Install additional dotnet tools.
7268
- pwsh: |
7369
dotnet tool install --global dotnet-coverage
7470
dotnet tool install --global dotnet-reportgenerator-globaltool
Collapse file

‎eng/pipelines/common/templates/jobs/ci-run-tests-job.yml‎

Copy file name to clipboardExpand all lines: eng/pipelines/common/templates/jobs/ci-run-tests-job.yml
+31-26Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ parameters:
8181
# The timeout, in minutes, for this job.
8282
- name: timeout
8383
type: number
84+
85+
# True if this is an ARM64 job.
86+
- name: isArm64
87+
type: boolean
88+
default: false
8489

8590
jobs:
8691
- job: ${{ format('{0}', coalesce(parameters.jobDisplayName, parameters.image, 'unknown_image')) }}
@@ -102,6 +107,19 @@ jobs:
102107
value: '$(dotnetx86Path)'
103108

104109
steps:
110+
111+
# Install the .NET SDK and Runtimes.
112+
- template: /eng/pipelines/steps/install-dotnet.yml@self
113+
parameters:
114+
debug: ${{ parameters.debug }}
115+
${{ if parameters.isArm64 }}:
116+
architecture: arm64
117+
# ARM64 needs to specify slightly different runtime version formats.
118+
# See the install-dotnet template docs for more info.
119+
runtimes: ['8.0', '9.0']
120+
${{ else }}:
121+
runtimes: [8.x, 9.x]
122+
105123
- ${{ if ne(parameters.prebuildSteps, '') }}:
106124
- ${{ parameters.prebuildSteps }} # extra steps to run before the build like downloading sni and the required configuration
107125

@@ -121,6 +139,12 @@ jobs:
121139
}
122140
displayName: 'Verify Password'
123141
142+
- ${{ if eq(parameters.buildType, 'Project') }}:
143+
- template: ../steps/ci-project-build-step.yml@self
144+
parameters:
145+
build: allNoDocs
146+
buildConfiguration: ${{ parameters.buildConfiguration }}
147+
124148
- ${{ if ne(parameters.configProperties, '{}') }}:
125149
- template: ../steps/update-config-file-step.yml@self # update config.json file
126150
parameters:
@@ -253,33 +277,14 @@ jobs:
253277
# it should be acceptable to just install a specific version in all cases.
254278
# @TODO: This setup is very confusing. Ideally we should just be utilizing the dotnet installation
255279
# earlier in the job. There has to be a cleaner way of doing this.
256-
# As it stands now, we install dotnet LTS if we're running netfx tests, and the appropriate netX
257-
# version if we're running netcore tests. Technically LTS is not supported by the UseDotNet task
258-
# but we know we're using install-dotnet since we're on windows (for now ... this will not work
259-
# forever and needs a serious rethinking).
260280
- ${{ if ne(variables['dotnetx86RootPath'], '') }}:
261-
- ${{ if startswith(parameters.targetFramework, 'net4')}}:
262-
- template: ../steps/ensure-dotnet-version.yml
263-
parameters:
264-
installDir: "$(dotnetx86RootPath)"
265-
packageType: "sdk"
266-
usePreview: "false"
267-
version: "LTS"
268-
windowsArchitecture: "x86"
269-
- ${{ else }}:
270-
- script: |
271-
set FrameworkVersion=${{ parameters.targetFramework }}
272-
echo %FrameworkVersion%
273-
set TrimmedFrameworkVersion=%FrameworkVersion:~3%
274-
echo %TrimmedFrameworkVersion%
275-
echo ##vso[task.setvariable variable=netVersionX86]%TrimmedFrameworkVersion%
276-
displayName: "Trim dotnet version"
277-
- template: ../steps/ensure-dotnet-version.yml
278-
parameters:
279-
installDir: "$(dotnetx86RootPath)"
280-
packageType: "sdk"
281-
usePreview: "false"
282-
version: $(netVersionX86)
281+
# Install the .NET SDK and Runtimes for x86.
282+
- template: /eng/pipelines/steps/install-dotnet.yml@self
283+
parameters:
284+
architecture: x86
285+
debug: ${{ parameters.debug }}
286+
installDir: $(dotnetx86RootPath)
287+
runtimes: [8.x, 9.x]
283288

284289
- template: ../steps/run-all-tests-step.yml@self
285290
parameters:
Collapse file

‎eng/pipelines/common/templates/stages/ci-run-tests-stage.yml‎

Copy file name to clipboardExpand all lines: eng/pipelines/common/templates/stages/ci-run-tests-stage.yml
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ stages:
7272
publishTestResults: true
7373
configSqlFor: ${{ config.value.configSqlFor }}
7474
operatingSystem: ${{ config.value.operatingSystem }}
75+
isArm64: ${{ eq(config.value.isArm64, 'true') }}
7576
${{if ne(config.value.configProperties, '{}') }}:
7677
${{ each x86TF in config.value.configProperties.x86TestTargetFrameworks }}:
7778
${{ if eq(x86TF, targetFramework) }}:
@@ -103,6 +104,7 @@ stages:
103104
publishTestResults: true
104105
configSqlFor: ${{ config.value.configSqlFor }}
105106
operatingSystem: ${{ config.value.operatingSystem }}
107+
isArm64: ${{ eq(config.value.isArm64, 'true') }}
106108
${{if and(eq(usemanagedSNI, false), ne(config.value.configProperties, '{}')) }}:
107109
${{ each x86TF in config.value.configProperties.x86TestTargetFrameworks }}:
108110
${{ if eq(x86TF, targetFramework) }}:
Collapse file

‎eng/pipelines/common/templates/steps/build-all-configurations-signed-dlls-step.yml‎

Copy file name to clipboardExpand all lines: eng/pipelines/common/templates/steps/build-all-configurations-signed-dlls-step.yml
+14-29Lines changed: 14 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -25,34 +25,19 @@ parameters:
2525
- MSS
2626

2727
steps:
28-
- task: DownloadSecureFile@1
29-
displayName: 'Download Key Pair'
30-
inputs:
31-
secureFile: netfxKeypair.snk
32-
retryCount: 5
33-
34-
- task: UseDotNet@2
35-
displayName: 'Use .NET 10.x sdk'
36-
inputs:
37-
packageType: sdk
38-
version: '10.x'
39-
40-
- task: UseDotNet@2
41-
displayName: 'Use .NET 9.x runtime'
42-
inputs:
43-
packageType: runtime
44-
version: '9.x'
28+
- task: DownloadSecureFile@1
29+
displayName: 'Download Key Pair'
30+
inputs:
31+
secureFile: netfxKeypair.snk
32+
retryCount: 5
4533

46-
- task: UseDotNet@2
47-
displayName: 'Install .NET 8.x runtime'
48-
inputs:
49-
packageType: runtime
50-
version: '8.x'
34+
# Install the .NET SDK.
35+
- template: /eng/pipelines/steps/install-dotnet.yml@self
5136

52-
- ${{ if eq(parameters.product, 'MDS') }}:
53-
- task: MSBuild@1
54-
displayName: 'BuildAllConfigurations using build.proj'
55-
inputs:
56-
solution: '**/build.proj'
57-
configuration: '${{parameters.buildConfiguration }}'
58-
msbuildArguments: '-p:AssemblyFileVersion=${{parameters.AssemblyFileVersion }} -t:BuildAllConfigurations -p:GenerateNuget=false -p:SigningKeyPath=$(Agent.TempDirectory)\netfxKeypair.snk'
37+
- ${{ if eq(parameters.product, 'MDS') }}:
38+
- task: MSBuild@1
39+
displayName: 'BuildAllConfigurations using build.proj'
40+
inputs:
41+
solution: '**/build.proj'
42+
configuration: '${{parameters.buildConfiguration }}'
43+
msbuildArguments: '-p:AssemblyFileVersion=${{parameters.AssemblyFileVersion }} -t:BuildAllConfigurations -p:GenerateNuget=false -p:SigningKeyPath=$(Agent.TempDirectory)\netfxKeypair.snk'

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.