From 642346639ea6a5bd6ec796e0b498792604a4ed62 Mon Sep 17 00:00:00 2001 From: Michiel Vermeersch Date: Thu, 14 Nov 2024 15:33:52 +0100 Subject: [PATCH] feat(CommandLine): add support for .NET 9.0 --- .../CommandLine.DocumentationGenerator.csproj | 4 ++-- src/CommandLine/CommandLine.csproj | 4 ++-- src/CommandLine/docs/NetCore/NuGetReadme.md | 2 +- tools/generate_cli_docs.ps1 | 2 +- tools/generate_ref_docs.ps1 | 2 +- tools/reinstall_cli.ps1 | 2 +- tools/reinstall_cli_debug.ps1 | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/CommandLine.DocumentationGenerator/CommandLine.DocumentationGenerator.csproj b/src/CommandLine.DocumentationGenerator/CommandLine.DocumentationGenerator.csproj index 8cf58f8bf1..3dc10ea6cb 100644 --- a/src/CommandLine.DocumentationGenerator/CommandLine.DocumentationGenerator.csproj +++ b/src/CommandLine.DocumentationGenerator/CommandLine.DocumentationGenerator.csproj @@ -1,11 +1,11 @@  - net8.0 + net9.0 - net6.0;net7.0;net8.0 + net7.0;net8.0;net9.0 diff --git a/src/CommandLine/CommandLine.csproj b/src/CommandLine/CommandLine.csproj index bdd567146d..510f3e86d1 100644 --- a/src/CommandLine/CommandLine.csproj +++ b/src/CommandLine/CommandLine.csproj @@ -1,11 +1,11 @@  - net8.0 + net9.0 - net7.0;net8.0 + net7.0;net8.0;net9.0 diff --git a/src/CommandLine/docs/NetCore/NuGetReadme.md b/src/CommandLine/docs/NetCore/NuGetReadme.md index 727601c207..eca5460891 100644 --- a/src/CommandLine/docs/NetCore/NuGetReadme.md +++ b/src/CommandLine/docs/NetCore/NuGetReadme.md @@ -4,7 +4,7 @@ ## Requirements -.NET Core SDK 6.0, 7.0 or 8.0. +.NET Core SDK 7.0, 8.0 or 9.0. ## Installation diff --git a/tools/generate_cli_docs.ps1 b/tools/generate_cli_docs.ps1 index 11aafe478a..5184abb048 100644 --- a/tools/generate_cli_docs.ps1 +++ b/tools/generate_cli_docs.ps1 @@ -5,7 +5,7 @@ dotnet build "$PSScriptRoot/../src/CommandLine.DocumentationGenerator/CommandLin if(!$?) { Read-Host; Exit } -& "$PSScriptRoot/../src/CommandLine.DocumentationGenerator/bin/Release/net8.0/Roslynator.CommandLine.DocumentationGenerator" ` +& "$PSScriptRoot/../src/CommandLine.DocumentationGenerator/bin/Release/net9.0/Roslynator.CommandLine.DocumentationGenerator" ` build ` "$PSScriptRoot/../src/CommandLine.DocumentationGenerator/data" ` "help,migrate" diff --git a/tools/generate_ref_docs.ps1 b/tools/generate_ref_docs.ps1 index 3ee82ec673..94a62d3946 100644 --- a/tools/generate_ref_docs.ps1 +++ b/tools/generate_ref_docs.ps1 @@ -4,7 +4,7 @@ dotnet build generate_ref_docs.sln --no-restore -c Release -v minimal /m dotnet restore "$PSScriptRoot/../src/CommandLine.sln" -v minimal /m dotnet build "$PSScriptRoot/../src/CommandLine.sln" --no-restore -c Release -v minimal /m -& "$PSScriptRoot/../src/CommandLine/bin/Release/net8.0/Roslynator" generate-doc generate_ref_docs.sln ` +& "$PSScriptRoot/../src/CommandLine/bin/Release/net9.0/Roslynator" generate-doc generate_ref_docs.sln ` --properties Configuration=Release ` -o "build/ref" ` --host docusaurus ` diff --git a/tools/reinstall_cli.ps1 b/tools/reinstall_cli.ps1 index 18665c3aa6..eb111820e3 100644 --- a/tools/reinstall_cli.ps1 +++ b/tools/reinstall_cli.ps1 @@ -1,4 +1,4 @@ -Remove-Item -Path "$PSScriptRoot/../src/CommandLine/bin/Release/net8.0" -Recurse +Remove-Item -Path "$PSScriptRoot/../src/CommandLine/bin/Release/net9.0" -Recurse Remove-Item -Path "$PSScriptRoot/../src/CommandLine/bin/Release/Roslynator.DotNet.Cli.*.nupkg" dotnet pack "$PSScriptRoot/../src/CommandLine/CommandLine.csproj" -c Release -v minimal /p:RoslynatorDotNetCli=true,Deterministic=true,TreatWarningsAsErrors=true,WarningsNotAsErrors="1573,1591" diff --git a/tools/reinstall_cli_debug.ps1 b/tools/reinstall_cli_debug.ps1 index 866d3bc91f..830ada0015 100644 --- a/tools/reinstall_cli_debug.ps1 +++ b/tools/reinstall_cli_debug.ps1 @@ -1,4 +1,4 @@ -Remove-Item -Path "$PSScriptRoot/../src/CommandLine/bin/Debug/net8.0" -Recurse +Remove-Item -Path "$PSScriptRoot/../src/CommandLine/bin/Debug/net9.0" -Recurse Remove-Item -Path "$PSScriptRoot/../src/CommandLine/bin/Debug/Roslynator.DotNet.Cli.*.nupkg" dotnet pack "$PSScriptRoot/../src/CommandLine/CommandLine.csproj" -c Debug -v minimal /p:RoslynatorDotNetCli=true,Deterministic=true