Skip to content

Commit

Permalink
Upgrade build to .NET 8.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrainger committed Jan 12, 2024
1 parent 097ac8d commit adc0cf3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up .NET 6
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore
run: .\build.ps1 restore
- name: Build
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": "8.0.100",
"rollForward": "latestFeature"
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions tests/Faithlife.Analyzers.Tests/Verifiers/CodeFixVerifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private void VerifyFix(string language, DiagnosticAnalyzer analyzer, CodeFixProv
var context = new CodeFixContext(document, analyzerDiagnostics[0], (a, d) => actions.Add(a), CancellationToken.None);
codeFixProvider.RegisterCodeFixesAsync(context).Wait();

if (!actions.Any())
if (actions.Count == 0)
{
break;
}
Expand Down Expand Up @@ -110,7 +110,7 @@ private void VerifyFix(string language, DiagnosticAnalyzer analyzer, CodeFixProv
}

// check if there are analyzer diagnostics left after the code fix
if (!analyzerDiagnostics.Any())
if (analyzerDiagnostics.Length == 0)
{
break;
}
Expand Down
2 changes: 1 addition & 1 deletion tools/Build/Build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit adc0cf3

Please sign in to comment.