Skip to content

Commit b5411e1

Browse files
committed
Use global.json in CI
1 parent 75cff4c commit b5411e1

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/ci-test.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@ jobs:
3030
with:
3131
cache: true
3232
cache-dependency-path: '**/*.csproj'
33-
dotnet-version: |
34-
6.0.x
35-
7.0.x
36-
8.0.x
33+
dotnet-version: 6.0.x
34+
global-json-file: "./global.json"
3735

3836
- name: Install PSResources
3937
shell: pwsh

.pipelines/PowerShellEditorServices-Official.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ extends:
8080
displayName: Use .NET 8.x SDK
8181
inputs:
8282
packageType: sdk
83-
version: 8.x
83+
useGlobalJson: true
8484
- task: UseDotNet@2
8585
displayName: Use .NET 6.x runtime (for tests)
8686
inputs:

0 commit comments

Comments
 (0)