Skip to content

Commit

Permalink
Add global json and update yml files to use the sdk version from the …
Browse files Browse the repository at this point in the history
…global.json
  • Loading branch information
skylarnam committed Feb 22, 2023
1 parent 535b6e8 commit 68c6852
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/actions-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install .NET Core SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.x
global-json-file: ..\..\global.json

- name: Restore dependencies
run: dotnet restore
Expand Down
6 changes: 6 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sdk": {
"version": "7.0.200",
"rollForward": "feature"
}
}
2 changes: 1 addition & 1 deletion vsts-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ steps:
- task: UseDotNet@2
displayName: 'Install .NET Core SDK'
inputs:
version: '7.x'
useGlobalJson: true

- task: DotNetCoreCLI@2
displayName: Build
Expand Down

0 comments on commit 68c6852

Please sign in to comment.