From 40d33eb1b695811e121450b5cb18cdeedfea8746 Mon Sep 17 00:00:00 2001 From: "Martin Hinshelwood nkdAgility.com" Date: Tue, 17 Sep 2024 08:49:05 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20(MigrationTools):=20update=20Mig?= =?UTF-8?q?rationTools.xml=20with=20new=20branch=20and=20commit=20details?= =?UTF-8?q?=20=E2=AC=86=EF=B8=8F=20(MigrationTools.ConsoleFull):=20add=20s?= =?UTF-8?q?upport=20for=20.NET=208.0=20and=20update=20package=20references?= =?UTF-8?q?=20=F0=9F=92=A1=20(EndpointRegistrationExtensions):=20fix=20str?= =?UTF-8?q?ing=20interpolation=20in=20console=20log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The MigrationTools.xml file is updated to reflect the latest branch, commit, and version details. The MigrationTools.ConsoleFull.csproj file now supports both .NET Framework 4.7.2 and .NET 8.0, allowing for greater flexibility and future-proofing. Additionally, package references are conditionally included based on the target framework to ensure compatibility. The EndpointRegistrationExtensions.cs file is updated to use string interpolation correctly, improving code readability and maintainability. --- docs/Reference/Generated/MigrationTools.xml | 14 ++++----- .../MigrationTools.ConsoleFull.csproj | 29 +++++++++++++------ .../EndpointRegistrationExtensions.cs | 2 +- 3 files changed, 28 insertions(+), 17 deletions(-) diff --git a/docs/Reference/Generated/MigrationTools.xml b/docs/Reference/Generated/MigrationTools.xml index bb9d5cb61..e1007212a 100644 --- a/docs/Reference/Generated/MigrationTools.xml +++ b/docs/Reference/Generated/MigrationTools.xml @@ -258,32 +258,32 @@ - => @"main" + => @"topic/limit-endpoint-creation" - => @"76c49c7b" + => @"8d4a8c06" - => @"76c49c7bd212b11211a22924e6ad4e36339739b8" + => @"8d4a8c06a31d595ee06b524c197ad5728f41673d" - => @"2024-09-16T00:57:48+01:00" + => @"2024-09-16T14:51:48+01:00" - => @"0" + => @"1" - => @"v16.0.4-Preview.2" + => @"v16.0.4-Preview.2-1-g8d4a8c06" @@ -318,7 +318,7 @@ - => @"4" + => @"5" diff --git a/src/MigrationTools.ConsoleFull/MigrationTools.ConsoleFull.csproj b/src/MigrationTools.ConsoleFull/MigrationTools.ConsoleFull.csproj index 7a638402e..5093f6ada 100644 --- a/src/MigrationTools.ConsoleFull/MigrationTools.ConsoleFull.csproj +++ b/src/MigrationTools.ConsoleFull/MigrationTools.ConsoleFull.csproj @@ -2,7 +2,8 @@ Exe - net472 + net472; net8.0 + Azure DevOps Migration Tools [Object Model] devopsmigration AnyCPU @@ -15,6 +16,10 @@ LICENSE + + win-x64;linux-x64;osx-x64 + + Always @@ -47,21 +52,27 @@ - - - - - - - + + + + + + + + + + - + + + + diff --git a/src/MigrationTools/Endpoints/Infrastructure/EndpointRegistrationExtensions.cs b/src/MigrationTools/Endpoints/Infrastructure/EndpointRegistrationExtensions.cs index 23a04f7e4..b5f872fb0 100644 --- a/src/MigrationTools/Endpoints/Infrastructure/EndpointRegistrationExtensions.cs +++ b/src/MigrationTools/Endpoints/Infrastructure/EndpointRegistrationExtensions.cs @@ -29,7 +29,7 @@ public static void AddConfiguredEndpoints(this IServiceCollection services, ICon var endpointType = endpointConfig.GetValue("EndpointType"); if (string.IsNullOrEmpty(endpointType)) { - Console.WriteLine("Endpoint '{EndpointName}' does not have a type configured. Skipping.", endpointName); + Console.WriteLine($"Endpoint '{endpointName}' does not have a type configured. Skipping."); continue; } AddEndPointSingleton(services, configuration, endpointConfig, endpointName, endpointType);