From c62af26fb6ee4a53ad6a135b563299695a48af17 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Fri, 30 Jan 2026 22:24:37 +1100 Subject: [PATCH 1/2] rename to NServiceBus.Community.HandlerOrdering --- src/.editorconfig | 2 + src/Directory.Build.props | 2 +- src/HandlerOrdering.sln | 3 +- ...rviceBus.Community.HandlerOrdering.csproj} | 2 +- src/Sample/Sample.csproj | 2 +- src/Tests/Tests.csproj | 2 +- src/Tests/TypeSorterTests.cs | 37 +++++++------------ src/global.json | 2 +- 8 files changed, 23 insertions(+), 29 deletions(-) rename src/HandlerOrdering/{NServiceBus.HandlerOrdering.csproj => NServiceBus.Community.HandlerOrdering.csproj} (71%) diff --git a/src/.editorconfig b/src/.editorconfig index 93c4455..86c5684 100644 --- a/src/.editorconfig +++ b/src/.editorconfig @@ -338,6 +338,8 @@ resharper_return_value_of_pure_method_is_not_used_highlighting = error resharper_all_underscore_local_parameter_name_highlighting = none +resharper_misleading_body_like_statement_highlighting = error + # Xml files [*.{xml,config,nuspec,resx,vsixmanifest,csproj,targets,props,fsproj}] indent_size = 2 diff --git a/src/Directory.Build.props b/src/Directory.Build.props index fb07b65..3caa372 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,7 +1,7 @@ - 3.0.4 + 3.1.0 1.0.0 preview NServiceBus, Handler Ordering diff --git a/src/HandlerOrdering.sln b/src/HandlerOrdering.sln index bc9349e..7538b03 100644 --- a/src/HandlerOrdering.sln +++ b/src/HandlerOrdering.sln @@ -2,7 +2,7 @@ # Visual Studio Version 16 VisualStudioVersion = 16.0.29201.188 MinimumVisualStudioVersion = 16.0.29201.188 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NServiceBus.HandlerOrdering", "HandlerOrdering\NServiceBus.HandlerOrdering.csproj", "{6252324B-3DE9-4DA1-B531-C1555B8D7C8D}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NServiceBus.Community.HandlerOrdering", "HandlerOrdering\NServiceBus.Community.HandlerOrdering.csproj", "{6252324B-3DE9-4DA1-B531-C1555B8D7C8D}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sample", "Sample\Sample.csproj", "{161F9409-B0F7-4940-9C3A-988B8A9DBDD0}" EndProject @@ -14,6 +14,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution appveyor.yml = appveyor.yml Directory.Build.props = Directory.Build.props global.json = global.json + ..\readme.source.md = ..\readme.source.md EndProjectSection EndProject Global diff --git a/src/HandlerOrdering/NServiceBus.HandlerOrdering.csproj b/src/HandlerOrdering/NServiceBus.Community.HandlerOrdering.csproj similarity index 71% rename from src/HandlerOrdering/NServiceBus.HandlerOrdering.csproj rename to src/HandlerOrdering/NServiceBus.Community.HandlerOrdering.csproj index 9aeb897..139b33f 100644 --- a/src/HandlerOrdering/NServiceBus.HandlerOrdering.csproj +++ b/src/HandlerOrdering/NServiceBus.Community.HandlerOrdering.csproj @@ -2,10 +2,10 @@ net9.0 + NServiceBus.HandlerOrdering - \ No newline at end of file diff --git a/src/Sample/Sample.csproj b/src/Sample/Sample.csproj index 3a0b9b7..301b8eb 100644 --- a/src/Sample/Sample.csproj +++ b/src/Sample/Sample.csproj @@ -6,6 +6,6 @@ - + \ No newline at end of file diff --git a/src/Tests/Tests.csproj b/src/Tests/Tests.csproj index 48b1ae9..2ea5bc6 100644 --- a/src/Tests/Tests.csproj +++ b/src/Tests/Tests.csproj @@ -11,7 +11,7 @@ - + \ No newline at end of file diff --git a/src/Tests/TypeSorterTests.cs b/src/Tests/TypeSorterTests.cs index cae9506..91fea59 100644 --- a/src/Tests/TypeSorterTests.cs +++ b/src/Tests/TypeSorterTests.cs @@ -8,15 +8,12 @@ public void Run() { var dependencies = new Dictionary> { - [typeof(Class1)] = new() - { + [typeof(Class1)] = + [ typeof(Class2), typeof(Class3) - }, - [typeof(Class2)] = new() - { - typeof(Class3) - } + ], + [typeof(Class2)] = [typeof(Class3)] }; var sorted = new TypeSorter(dependencies).Sorted; Assert.Equal(3, sorted.Count); @@ -39,18 +36,12 @@ public void Run() { var dependencies = new Dictionary> { - [typeof(Class1)] = new() - { - typeof(Class2), - }, - [typeof(Class2)] = new() - { - typeof(Class3) - }, - [typeof(Class3)] = new() - { - typeof(Class1) - } + [typeof(Class1)] = + [ + typeof(Class2) + ], + [typeof(Class2)] = [typeof(Class3)], + [typeof(Class3)] = [typeof(Class1)] }; var exception = Assert.Throws(() => new TypeSorter(dependencies)); var expected = @@ -76,10 +67,10 @@ public void Run() { var dependencies = new Dictionary> { - [typeof(Class1)] = new() - { - typeof(Class1), - } + [typeof(Class1)] = + [ + typeof(Class1) + ] }; var exception = Assert.Throws(() => new TypeSorter(dependencies)); var expected = """ diff --git a/src/global.json b/src/global.json index 1aa60a7..f5fb2a9 100644 --- a/src/global.json +++ b/src/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "9.0.201", + "version": "10.0.102", "allowPrerelease": true, "rollForward": "latestFeature" } From 81e3a267f432ee443f6aabe7cb2f27812cfab11c Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Fri, 30 Jan 2026 22:27:45 +1100 Subject: [PATCH 2/2] . --- src/Sample/Sample.csproj | 2 +- src/Tests/Tests.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Sample/Sample.csproj b/src/Sample/Sample.csproj index 301b8eb..1f9e7fd 100644 --- a/src/Sample/Sample.csproj +++ b/src/Sample/Sample.csproj @@ -1,6 +1,6 @@ - net9.0 + net10.0 Exe 7.1 diff --git a/src/Tests/Tests.csproj b/src/Tests/Tests.csproj index 2ea5bc6..1d14de3 100644 --- a/src/Tests/Tests.csproj +++ b/src/Tests/Tests.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 testing