Skip to content

Commit

Permalink
Use same .NET SDK for local and CI builds via global.json (davidfowl#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwe1ss authored Nov 14, 2022
1 parent afdc367 commit e1a6c71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup .NET Core SDK
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
dotnet-quality: 'ga'

- name: dotnet build
run: dotnet build TodoApi.sln -c Release
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.100",
"rollForward": "latestFeature"
}
}

0 comments on commit e1a6c71

Please sign in to comment.