From 26975133eb531c0095f4460071f1902ecc05ff71 Mon Sep 17 00:00:00 2001 From: Bela VanderVoort Date: Sun, 20 Oct 2024 12:02:43 -0500 Subject: [PATCH] Adding net9/c#13 support. Drop support for net6/7 closes #1318 --- .github/workflows/format_repositories.yml | 2 +- .run/Playground.run.xml | 2 +- Directory.Build.props | 2 +- Scripts/RunLinuxTests.ps1 | 4 +- Src/CSharpier.Cli/CSharpier.Cli.csproj | 2 +- .../SyntaxNodeComparerGenerator.cs | 2 +- .../CSharpier.MsBuild.csproj | 4 +- .../build/CSharpier.MsBuild.targets | 3 +- Src/CSharpier.Tests/CSharpier.Tests.csproj | 2 + .../TestFiles/cs/AllowsRefStruct.test | 9 +++ Src/CSharpier/CSharpier.csproj | 2 +- Src/CSharpier/SyntaxNodeComparer.generated.cs | 28 +++++++++ .../SyntaxNodeJsonWriter.generated.cs | 58 +++++++++++++++++++ Src/SyntaxFinder/SyntaxFinder.csproj | 2 +- docs/MSBuild.md | 6 +- global.json | 2 +- 16 files changed, 113 insertions(+), 17 deletions(-) create mode 100644 Src/CSharpier.Tests/FormattingTests/TestFiles/cs/AllowsRefStruct.test diff --git a/.github/workflows/format_repositories.yml b/.github/workflows/format_repositories.yml index 18359d7b7..36f5a969e 100644 --- a/.github/workflows/format_repositories.yml +++ b/.github/workflows/format_repositories.yml @@ -18,4 +18,4 @@ jobs: repository: belav/csharpier-repos path: csharpier-repos - run: dotnet build csharpier/Src/CSharpier.Cli/CSharpier.Cli.csproj -c release - - run: dotnet csharpier/Src/CSharpier.Cli/bin/release/net8.0/dotnet-csharpier.dll csharpier-repos --skip-write + - run: dotnet csharpier/Src/CSharpier.Cli/bin/release/net9.0/dotnet-csharpier.dll csharpier-repos --skip-write diff --git a/.run/Playground.run.xml b/.run/Playground.run.xml index 16fffa74c..954597bda 100644 --- a/.run/Playground.run.xml +++ b/.run/Playground.run.xml @@ -1,7 +1,7 @@