From dda41014b2fd4f8f1544fa4eccba23138f53b0dd Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Thu, 6 Jun 2024 16:35:18 +0200 Subject: [PATCH 1/5] Update Microsoft Kiota version to v1.15.0 in CLI tool --- src/CLI/ApiClientCodeGen.CLI/Commands/CSharp/KiotaCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CLI/ApiClientCodeGen.CLI/Commands/CSharp/KiotaCommand.cs b/src/CLI/ApiClientCodeGen.CLI/Commands/CSharp/KiotaCommand.cs index 0318ed5689..94b164d2e1 100644 --- a/src/CLI/ApiClientCodeGen.CLI/Commands/CSharp/KiotaCommand.cs +++ b/src/CLI/ApiClientCodeGen.CLI/Commands/CSharp/KiotaCommand.cs @@ -8,7 +8,7 @@ namespace Rapicgen.CLI.Commands.CSharp; -[Command("kiota", Description = "Microsoft Kiota (v1.14.0)")] +[Command("kiota", Description = "Microsoft Kiota (v1.15.0)")] public class KiotaCommand : CodeGeneratorCommand, IKiotaOptions { private readonly IProcessLauncher processLauncher; From 3c50d3be0c140b58df7b53acefecdbf35881babc Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Thu, 6 Jun 2024 16:35:58 +0200 Subject: [PATCH 2/5] Update Microsoft Kiota version to v1.15.0 in depedency installer --- .../Installer/DependencyInstallerTests.cs | 4 ++-- .../ApiClientCodeGen.Core/Installer/DependencyInstaller.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Core/ApiClientCodeGen.Core.Tests/Installer/DependencyInstallerTests.cs b/src/Core/ApiClientCodeGen.Core.Tests/Installer/DependencyInstallerTests.cs index 83c44bc55f..529057304c 100644 --- a/src/Core/ApiClientCodeGen.Core.Tests/Installer/DependencyInstallerTests.cs +++ b/src/Core/ApiClientCodeGen.Core.Tests/Installer/DependencyInstallerTests.cs @@ -99,7 +99,7 @@ public void InstallKiota_Invokes_ProcessLauncher( mock.Verify( c => c.Start( It.IsAny(), - "tool install --global Microsoft.OpenApi.Kiota --version 1.14.0", + "tool install --global Microsoft.OpenApi.Kiota --version 1.15.0", null)); } @@ -113,7 +113,7 @@ public void InstallKiota_Ignores_ProcessLauncherException_For_Already_Installed( .Throws( new ProcessLaunchException( "dotnet", - "tool install --global Microsoft.OpenApi.Kiota --version 1.14.0", + "tool install --global Microsoft.OpenApi.Kiota --version 1.15.0", null, string.Empty, "Tool 'microsoft.openapi.kiota' is already installed.")); diff --git a/src/Core/ApiClientCodeGen.Core/Installer/DependencyInstaller.cs b/src/Core/ApiClientCodeGen.Core/Installer/DependencyInstaller.cs index 2576c68781..0945fdc92b 100644 --- a/src/Core/ApiClientCodeGen.Core/Installer/DependencyInstaller.cs +++ b/src/Core/ApiClientCodeGen.Core/Installer/DependencyInstaller.cs @@ -71,7 +71,7 @@ public void InstallKiota() Logger.Instance.WriteLine(error); } }); - if (!kiotaVersion.StartsWith("1.14.0")) + if (!kiotaVersion.StartsWith("1.15.0")) { //older or newer? i guess this should be handled. } @@ -80,7 +80,7 @@ public void InstallKiota() { //if command doesn't exist Win32Exception is thrown. command = PathProvider.GetDotNetPath(); - arguments = "tool install --global Microsoft.OpenApi.Kiota --version 1.14.0"; + arguments = "tool install --global Microsoft.OpenApi.Kiota --version 1.15.0"; using var context = new DependencyContext(command, $"{command} {arguments}"); processLauncher.Start(command, arguments); context.Succeeded(); From f6e625b8c6be1f6fb60f7f074b447bc248786f58 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Thu, 6 Jun 2024 16:36:11 +0200 Subject: [PATCH 3/5] Update Microsoft Kiota version to v1.15.0 in header --- .../Generators/Kiota/KiotaCodeGenerator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/ApiClientCodeGen.Core/Generators/Kiota/KiotaCodeGenerator.cs b/src/Core/ApiClientCodeGen.Core/Generators/Kiota/KiotaCodeGenerator.cs index ced168e0b3..81b17eb261 100644 --- a/src/Core/ApiClientCodeGen.Core/Generators/Kiota/KiotaCodeGenerator.cs +++ b/src/Core/ApiClientCodeGen.Core/Generators/Kiota/KiotaCodeGenerator.cs @@ -31,7 +31,7 @@ public string GenerateCode(IProgressReporter? pGenerateProgress) return GeneratedCode.PrefixAutogeneratedCodeHeader( string.Empty, "Kiota", - "v1.14.0"); + "v1.15.0"); } pGenerateProgress?.Progress(30); @@ -87,7 +87,7 @@ public string GenerateCode(IProgressReporter? pGenerateProgress) return GeneratedCode.PrefixAutogeneratedCodeHeader( output, "Kiota", - "v1.14.0"); + "v1.15.0"); } private void RunKiotaGenerate(string outputFolder) From 98aef711cd739dbcd2a98644e94f0e51c33f9018 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Thu, 6 Jun 2024 16:36:24 +0200 Subject: [PATCH 4/5] Update Microsoft Kiota version to v1.15.0 in VSIX and VSMac projects --- src/VSIX/ApiClientCodeGen.VSIX.Dev17/VSCommandTable.vsct | 4 ++-- src/VSIX/ApiClientCodeGen.VSIX/VSCommandTable.vsct | 4 ++-- .../ApiClientCodeGen.VSMac/Properties/Manifest.addin.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/VSIX/ApiClientCodeGen.VSIX.Dev17/VSCommandTable.vsct b/src/VSIX/ApiClientCodeGen.VSIX.Dev17/VSCommandTable.vsct index 54f7280ad3..576f0d7273 100644 --- a/src/VSIX/ApiClientCodeGen.VSIX.Dev17/VSCommandTable.vsct +++ b/src/VSIX/ApiClientCodeGen.VSIX.Dev17/VSCommandTable.vsct @@ -44,7 +44,7 @@