From 8ffc1640bb4de088bdccc9c3384a21439ffd1189 Mon Sep 17 00:00:00 2001 From: brian-reichle <18721383+brian-reichle@users.noreply.github.com> Date: Fri, 6 Feb 2026 17:41:37 +1000 Subject: [PATCH 1/7] Update to VS2026. --- src/MethodCheck.sln | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MethodCheck.sln b/src/MethodCheck.sln index b238221..f333450 100644 --- a/src/MethodCheck.sln +++ b/src/MethodCheck.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 16.0.27130.2036 +# Visual Studio Version 18 +VisualStudioVersion = 18.2.11415.280 d18.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MethodCheck", "MethodCheck\MethodCheck.csproj", "{FDA76E88-8EE7-4C75-8213-7C41C32840EF}" EndProject From 825a774c1a5432bcd39ff9fd4aa27b10bcad311a Mon Sep 17 00:00:00 2001 From: brian-reichle <18721383+brian-reichle@users.noreply.github.com> Date: Fri, 6 Feb 2026 17:43:43 +1000 Subject: [PATCH 2/7] Added common solution-level files to the solution. --- src/MethodCheck.sln | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/MethodCheck.sln b/src/MethodCheck.sln index f333450..91fdb7d 100644 --- a/src/MethodCheck.sln +++ b/src/MethodCheck.sln @@ -9,6 +9,15 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MethodCheck.Test", "MethodC EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MethodCheck.Core", "MethodCheck.Core\MethodCheck.Core.csproj", "{14A18414-199A-4062-B210-F25289E5D228}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution", "Solution", "{29841CC3-D949-4863-8634-2F8006722B15}" + ProjectSection(SolutionItems) = preProject + ..\.editorconfig = ..\.editorconfig + ..\.github\workflows\build.yaml = ..\.github\workflows\build.yaml + ..\Directory.Build.props = ..\Directory.Build.props + ..\global.json = ..\global.json + ..\stylecop.json = ..\stylecop.json + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU From b778e82d496886fc0e26336abf406b12d5046432 Mon Sep 17 00:00:00 2001 From: brian-reichle <18721383+brian-reichle@users.noreply.github.com> Date: Fri, 6 Feb 2026 17:47:49 +1000 Subject: [PATCH 3/7] Use the SDK provided version of Microsoft.CodeAnalysis.NetAnalyzers rather than trying to specify an explicit version. --- Directory.Build.props | 1 + src/MethodCheck.Core/MethodCheck.Core.csproj | 4 ---- src/MethodCheck.Test/MethodCheck.Test.csproj | 4 ---- src/MethodCheck/MethodCheck.csproj | 4 ---- 4 files changed, 1 insertion(+), 12 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index f9843dc..b08d4c6 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -16,6 +16,7 @@ CS1591 - Missing XML comment. 1591 12.0 enable + true AllEnabledByDefault true diff --git a/src/MethodCheck.Core/MethodCheck.Core.csproj b/src/MethodCheck.Core/MethodCheck.Core.csproj index 1a08309..f8d4c92 100644 --- a/src/MethodCheck.Core/MethodCheck.Core.csproj +++ b/src/MethodCheck.Core/MethodCheck.Core.csproj @@ -6,10 +6,6 @@ - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/MethodCheck.Test/MethodCheck.Test.csproj b/src/MethodCheck.Test/MethodCheck.Test.csproj index 19037db..69521c5 100644 --- a/src/MethodCheck.Test/MethodCheck.Test.csproj +++ b/src/MethodCheck.Test/MethodCheck.Test.csproj @@ -6,10 +6,6 @@ - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - diff --git a/src/MethodCheck/MethodCheck.csproj b/src/MethodCheck/MethodCheck.csproj index 2f50e71..51d0724 100644 --- a/src/MethodCheck/MethodCheck.csproj +++ b/src/MethodCheck/MethodCheck.csproj @@ -7,10 +7,6 @@ - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - all runtime; build; native; contentfiles; analyzers; buildtransitive From 383ebc480dd90b9ca36586947cc1a3c4113fa812 Mon Sep 17 00:00:00 2001 From: brian-reichle <18721383+brian-reichle@users.noreply.github.com> Date: Fri, 6 Feb 2026 17:55:13 +1000 Subject: [PATCH 4/7] Update unit testing packages. --- src/MethodCheck.Test/MethodCheck.Test.csproj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MethodCheck.Test/MethodCheck.Test.csproj b/src/MethodCheck.Test/MethodCheck.Test.csproj index 69521c5..f7e5ef9 100644 --- a/src/MethodCheck.Test/MethodCheck.Test.csproj +++ b/src/MethodCheck.Test/MethodCheck.Test.csproj @@ -6,13 +6,13 @@ - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive From f84c5cda8ba2105acb396b04fff44a77be30ed3f Mon Sep 17 00:00:00 2001 From: brian-reichle <18721383+brian-reichle@users.noreply.github.com> Date: Fri, 6 Feb 2026 18:00:11 +1000 Subject: [PATCH 5/7] Update to .NET SDK 10.0.100. --- .github/workflows/build.yaml | 2 +- global.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 71c9a14..485f96f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -22,7 +22,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 8.0.200 + dotnet-version: 10.0.100 - name: Build MethodCheck run: dotnet build src --configuration ${{ matrix.configuration }} - name: Run Tests diff --git a/global.json b/global.json index d031a76..b24aad6 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "8.0.200", + "version": "10.0.100", "rollForward": "latestPatch" } } From 3caf80e99ff6ea576dd9cedac8ffddc0cefb5e02 Mon Sep 17 00:00:00 2001 From: brian-reichle <18721383+brian-reichle@users.noreply.github.com> Date: Fri, 6 Feb 2026 18:04:47 +1000 Subject: [PATCH 6/7] Update to C# 14. --- Directory.Build.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Build.props b/Directory.Build.props index b08d4c6..d58291d 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -14,7 +14,7 @@ CS1591 - Missing XML comment. --> 618,1030,1701,1702 1591 - 12.0 + 14.0 enable true AllEnabledByDefault From 4c9694bcb9db1344e1d48b4fde5171031deab012 Mon Sep 17 00:00:00 2001 From: brian-reichle <18721383+brian-reichle@users.noreply.github.com> Date: Fri, 6 Feb 2026 18:07:58 +1000 Subject: [PATCH 7/7] Update to net10.0. --- src/MethodCheck.Core/MethodCheck.Core.csproj | 2 +- src/MethodCheck.Test/MethodCheck.Test.csproj | 2 +- src/MethodCheck/.editorconfig | 4 ++++ src/MethodCheck/MethodCheck.csproj | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 src/MethodCheck/.editorconfig diff --git a/src/MethodCheck.Core/MethodCheck.Core.csproj b/src/MethodCheck.Core/MethodCheck.Core.csproj index f8d4c92..c89b161 100644 --- a/src/MethodCheck.Core/MethodCheck.Core.csproj +++ b/src/MethodCheck.Core/MethodCheck.Core.csproj @@ -2,7 +2,7 @@ Library - net8.0 + net10.0 diff --git a/src/MethodCheck.Test/MethodCheck.Test.csproj b/src/MethodCheck.Test/MethodCheck.Test.csproj index f7e5ef9..e585195 100644 --- a/src/MethodCheck.Test/MethodCheck.Test.csproj +++ b/src/MethodCheck.Test/MethodCheck.Test.csproj @@ -2,7 +2,7 @@ Library - net8.0 + net10.0 diff --git a/src/MethodCheck/.editorconfig b/src/MethodCheck/.editorconfig new file mode 100644 index 0000000..4825d61 --- /dev/null +++ b/src/MethodCheck/.editorconfig @@ -0,0 +1,4 @@ +# C# files +[*.cs] +# CA1515 only causes problems in WPF assemblies. +dotnet_diagnostic.CA1515.severity = none diff --git a/src/MethodCheck/MethodCheck.csproj b/src/MethodCheck/MethodCheck.csproj index 51d0724..2278b56 100644 --- a/src/MethodCheck/MethodCheck.csproj +++ b/src/MethodCheck/MethodCheck.csproj @@ -2,7 +2,7 @@ WinExe - net8.0-windows + net10.0-windows true