Skip to content

Commit 9f200fe

Browse files
authored
Updated to .NET 9
1 parent 3b6a3be commit 9f200fe

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,25 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v2
16-
- name: Setup .NET Core
17-
uses: actions/setup-dotnet@v1
18-
with:
19-
dotnet-version: 3.1.101
15+
- name: Checkout code
16+
- uses: actions/checkout@v4
17+
18+
   - name: Setup .NET 9 SDK
19+
      uses: actions/setup-dotnet@v4
20+
      with:
21+
        dotnet-version: '9.0.x'
22+
23+
    - name: Restore dependencies
24+
      run: dotnet restore
25+
2026
- name: Build Api
21-
run: dotnet build "Api/Api.csproj" --configuration Release --framework netcoreapp2.0
27+
run: dotnet build "Api/Api.csproj" --no-restore --configuration Release
28+
2229
- name: Copy sample config file to allow for the build to succeed
2330
uses: canastro/copy-file-action@master
2431
with:
2532
source: "UnitTestProject/App.sample.config"
26-
target: "UnitTestProject/app.config"
33+
target: "UnitTestProject/app.config"
34+
2735
- name: Build UnitTest
28-
run: dotnet build "UnitTestProject/UnitTestProject.csproj" --configuration Release --framework netcoreapp3.1
36+
run: dotnet build "UnitTestProject/UnitTestProject.csproj" --configuration Release

0 commit comments

Comments
 (0)