From ec7a587d3aa5e87a98d4674134aefc5524c5e26a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Gallienne?= Date: Sun, 17 Nov 2024 21:26:04 +0100 Subject: [PATCH] Update to .NET 9 --- global.json | 2 +- tests/AutoConstructor.Tests/AutoConstructor.Tests.csproj | 2 +- .../Verifiers/CSharpSourceGeneratorVerifier`1.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/global.json b/global.json index bbf5f8f..733b653 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "8.0.300", + "version": "9.0.100", "rollForward": "latestMajor", "allowPrerelease": false } diff --git a/tests/AutoConstructor.Tests/AutoConstructor.Tests.csproj b/tests/AutoConstructor.Tests/AutoConstructor.Tests.csproj index 8bdc475..d30e5fb 100644 --- a/tests/AutoConstructor.Tests/AutoConstructor.Tests.csproj +++ b/tests/AutoConstructor.Tests/AutoConstructor.Tests.csproj @@ -1,7 +1,7 @@ - net8.0 + net9.0 false diff --git a/tests/AutoConstructor.Tests/Verifiers/CSharpSourceGeneratorVerifier`1.cs b/tests/AutoConstructor.Tests/Verifiers/CSharpSourceGeneratorVerifier`1.cs index 1e02282..d4f0a0f 100644 --- a/tests/AutoConstructor.Tests/Verifiers/CSharpSourceGeneratorVerifier`1.cs +++ b/tests/AutoConstructor.Tests/Verifiers/CSharpSourceGeneratorVerifier`1.cs @@ -46,7 +46,7 @@ public static Task RunAsync( string? additionalProjectsSource = null, bool runWithNullChecks = true) { - return RunAsync(code, new[] { (generated, generatedName) }, nullable, diagnostics, configFileContent, additionalProjectsSource, runWithNullChecks); + return RunAsync(code, [(generated, generatedName)], nullable, diagnostics, configFileContent, additionalProjectsSource, runWithNullChecks); } public static async Task RunAsync(