Skip to content

Commit 4c493b6

Browse files
authored
build: Target .NET 8 and .NET 9 (#8)
* build: Target .NET 8 and .NET 9 * fix: Remove TargetFramework specification for compatibility * ci(codeql): Add .NET setup to CodeQL GitHub Actions workflow * ci(codeql): Use manual build instead of autobuild
1 parent ddbeceb commit 4c493b6

File tree

7 files changed

+1858
-3
lines changed

7 files changed

+1858
-3
lines changed

.github/workflows/codeql.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,16 @@ jobs:
4646
with:
4747
languages: ${{ matrix.language }}
4848

49-
- name: Autobuild
50-
uses: github/codeql-action/autobuild@v3
49+
- name: Setup .NET
50+
uses: actions/setup-dotnet@v4
51+
with:
52+
global-json-file: global.json
53+
54+
- name: Restore dependencies
55+
run: dotnet restore --locked-mode
56+
57+
- name: Build
58+
run: dotnet build --no-restore
5159

5260
- name: Perform CodeQL Analysis
5361
uses: github/codeql-action/analyze@v3

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<PropertyGroup>
33
<LangVersion>preview</LangVersion>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<EnableNETAnalyzers>true</EnableNETAnalyzers>

0 commit comments

Comments
 (0)