From 8eb9c3769484295d92fea780f1b78a87bdd49357 Mon Sep 17 00:00:00 2001 From: Ben Mazzarol Date: Sat, 21 Feb 2026 16:19:11 +0800 Subject: [PATCH] chore: update dependencies, target frameworks, and solution structure - Updated target frameworks to .NET 10 for consistency across projects. - Upgraded dependencies, including tools and packages, to their latest versions. - Replaced `.sln` with a `.slnx` file for streamlined solution management. - Added `global.json` to define test runner configuration. - Minor documentation formatting fixes for better readability. --- .config/dotnet-tools.json | 4 +-- CODE_OF_CONDUCT.md | 4 +-- Common.Benchmark.props | 2 +- Common.Docs.props | 2 +- Common.Test.props | 6 ++--- Cutout.Docs/articles/getting-started.md | 4 ++- Cutout.sln | 34 ------------------------- Cutout.slnx | 6 +++++ Parent.Directory.Packages.props | 26 +++++++++---------- global.json | 5 ++++ 10 files changed, 35 insertions(+), 58 deletions(-) delete mode 100644 Cutout.sln create mode 100644 Cutout.slnx create mode 100644 global.json diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 5cd79ab..a0f25a9 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,13 +3,13 @@ "isRoot": true, "tools": { "husky": { - "version": "0.7.2", + "version": "0.8.0", "commands": [ "husky" ] }, "csharpier": { - "version": "1.0.3", + "version": "1.2.6", "commands": [ "csharpier" ] diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 0d3849c..00a3f07 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -118,8 +118,8 @@ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0, [available here](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html). -Community Impact Guidelines were inspired by [Mozilla's code of conduct -enforcement ladder](https://github.com/mozilla/diversity). +Community Impact Guidelines were inspired by +[Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity). [homepage]: https://www.contributor-covenant.org diff --git a/Common.Benchmark.props b/Common.Benchmark.props index ef5fcc4..fe1d2ff 100644 --- a/Common.Benchmark.props +++ b/Common.Benchmark.props @@ -4,7 +4,7 @@ the benchmark projects that are in this solution --> - net8.0 + net10.0 true $(AssemblyName.Replace('.Benchmarks', '')) Exe diff --git a/Common.Docs.props b/Common.Docs.props index cef4d5b..f12f703 100644 --- a/Common.Docs.props +++ b/Common.Docs.props @@ -4,7 +4,7 @@ the docs projects that are in this solution --> - net8.0 + net10.0 diff --git a/Common.Test.props b/Common.Test.props index 65a3c38..dd8f608 100644 --- a/Common.Test.props +++ b/Common.Test.props @@ -4,12 +4,10 @@ the test projects that are in this solution --> - net8.0 + net10.0 true $(AssemblyName.Replace('.Tests', '')) Exe - true - true - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/Cutout.Docs/articles/getting-started.md b/Cutout.Docs/articles/getting-started.md index d1ea31e..f1f6bff 100644 --- a/Cutout.Docs/articles/getting-started.md +++ b/Cutout.Docs/articles/getting-started.md @@ -1,7 +1,9 @@ # Getting Started To use this library, simply include `Cutout.dll` in your project or grab -it from [NuGet](https://www.nuget.org/packages/Cutout/), and add a reference to it. +it from +[NuGet](https://www.nuget.org/packages/Cutout/) +, and add a reference to it. ```xml diff --git a/Cutout.sln b/Cutout.sln deleted file mode 100644 index 4f05841..0000000 --- a/Cutout.sln +++ /dev/null @@ -1,34 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cutout", "Cutout\Cutout.csproj", "{8ED6863E-C06B-47D2-AB44-BEC48DD1B49B}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cutout.Sample", "Cutout.Sample\Cutout.Sample.csproj", "{CDB9D701-5E4C-45BC-ABFB-1D3E7CFD2DAA}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cutout.Tests", "Cutout.Tests\Cutout.Tests.csproj", "{EA3D7126-C006-47DE-AF88-AEC0F5FD485E}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cutout.Docs", "Cutout.Docs\Cutout.Docs.csproj", "{8D842E29-21B3-4D8A-9EA5-581795C0132A}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {8ED6863E-C06B-47D2-AB44-BEC48DD1B49B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8ED6863E-C06B-47D2-AB44-BEC48DD1B49B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8ED6863E-C06B-47D2-AB44-BEC48DD1B49B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8ED6863E-C06B-47D2-AB44-BEC48DD1B49B}.Release|Any CPU.Build.0 = Release|Any CPU - {CDB9D701-5E4C-45BC-ABFB-1D3E7CFD2DAA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {CDB9D701-5E4C-45BC-ABFB-1D3E7CFD2DAA}.Debug|Any CPU.Build.0 = Debug|Any CPU - {CDB9D701-5E4C-45BC-ABFB-1D3E7CFD2DAA}.Release|Any CPU.ActiveCfg = Release|Any CPU - {CDB9D701-5E4C-45BC-ABFB-1D3E7CFD2DAA}.Release|Any CPU.Build.0 = Release|Any CPU - {EA3D7126-C006-47DE-AF88-AEC0F5FD485E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {EA3D7126-C006-47DE-AF88-AEC0F5FD485E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EA3D7126-C006-47DE-AF88-AEC0F5FD485E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {EA3D7126-C006-47DE-AF88-AEC0F5FD485E}.Release|Any CPU.Build.0 = Release|Any CPU - {8D842E29-21B3-4D8A-9EA5-581795C0132A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8D842E29-21B3-4D8A-9EA5-581795C0132A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8D842E29-21B3-4D8A-9EA5-581795C0132A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8D842E29-21B3-4D8A-9EA5-581795C0132A}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection -EndGlobal diff --git a/Cutout.slnx b/Cutout.slnx new file mode 100644 index 0000000..4ef2780 --- /dev/null +++ b/Cutout.slnx @@ -0,0 +1,6 @@ + + + + + + diff --git a/Parent.Directory.Packages.props b/Parent.Directory.Packages.props index 34b38dc..9f8fe8f 100644 --- a/Parent.Directory.Packages.props +++ b/Parent.Directory.Packages.props @@ -14,9 +14,9 @@ - - - + + + @@ -24,9 +24,9 @@ - - - + + + @@ -41,19 +41,19 @@ Version="2.0.0" Condition="$(BuiltInMonoRepo) != 'true'" /> - - - + + + - - + + - - + + diff --git a/global.json b/global.json new file mode 100644 index 0000000..802ab21 --- /dev/null +++ b/global.json @@ -0,0 +1,5 @@ +{ + "test": { + "runner": "Microsoft.Testing.Platform" + } +} \ No newline at end of file