diff --git a/README.md b/README.md index 63be8163ec..02e6536571 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ A collection of Visual Studio C# custom tool code generators for Swagger / OpenA The output file is the result of merging all the files generated using the OpenAPI Generator tool with: ` generate -g csharp --input-spec [swagger file] --output [output file] -DapiTests=false -DmodelTests=false -DpackageName=[default namespace] --skip-overwrite` -- ***KiotaCodeGenerator*** - Generates a single file C# REST API Client using the Microsoft project **[Kiota v1.7.0](https://learn.microsoft.com/en-us/openapi/kiota/)** generator. +- ***KiotaCodeGenerator*** - Generates a single file C# REST API Client using the Microsoft project **[Kiota v1.8.0](https://learn.microsoft.com/en-us/openapi/kiota/)** generator. The output file is the result of merging all the files generated using the Kiota dotnet tool with: ` generate -l CSharp -d [swagger file] -o [output file] -n [default namespace]` @@ -294,7 +294,7 @@ Options: Commands: autorest AutoRest (v3.0.0-beta.20210504.2) - kiota Microsoft Kiota (v1.7.0) + kiota Microsoft Kiota (v1.8.0) nswag NSwag (v13.20.0) openapi OpenAPI Generator (v7.0.1) refitter Refitter (v0.8.3) diff --git a/docs/CLI.md b/docs/CLI.md index c9725dff2e..9419fd4a24 100644 --- a/docs/CLI.md +++ b/docs/CLI.md @@ -64,7 +64,7 @@ Options: Commands: autorest AutoRest (v3.0.0-beta.20210504.2) - kiota Microsoft Kiota (v1.7.0) + kiota Microsoft Kiota (v1.8.0) nswag NSwag (v13.20.0) openapi OpenAPI Generator (v7.0.1) refitter Refitter (v0.8.3) diff --git a/docs/Marketplace.md b/docs/Marketplace.md index 9c582aeb15..fd313a80a2 100644 --- a/docs/Marketplace.md +++ b/docs/Marketplace.md @@ -23,7 +23,7 @@ A collection of Visual Studio C# custom tool code generators for Swagger / OpenA The output file is the result of merging all the files generated using the OpenAPI Generator tool with: ` generate -g csharp --input-spec [swagger file] --output [output file] -DapiTests=false -DmodelTests=false -DpackageName=[default namespace] --skip-overwrite` -- ***KiotaCodeGenerator*** - Generates a single file C# REST API Client using the Microsoft project **[Kiota v1.7.0](https://learn.microsoft.com/en-us/openapi/kiota/)** generator. +- ***KiotaCodeGenerator*** - Generates a single file C# REST API Client using the Microsoft project **[Kiota v1.8.0](https://learn.microsoft.com/en-us/openapi/kiota/)** generator. The output file is the result of merging all the files generated using the Kiota dotnet tool with: ` generate -l CSharp -d [swagger file] -o [output file] -n [default namespace]` diff --git a/docs/Marketplace2022.md b/docs/Marketplace2022.md index b612673be6..ed97b11653 100644 --- a/docs/Marketplace2022.md +++ b/docs/Marketplace2022.md @@ -23,7 +23,7 @@ A collection of Visual Studio C# custom tool code generators for Swagger / OpenA The output file is the result of merging all the files generated using the OpenAPI Generator tool with: ` generate -g csharp --input-spec [swagger file] --output [output file] -DapiTests=false -DmodelTests=false -DpackageName=[default namespace] --skip-overwrite` -- ***KiotaCodeGenerator*** - Generates a single file C# REST API Client using the Microsoft project **[Kiota v1.7.0](https://learn.microsoft.com/en-us/openapi/kiota/)** generator. +- ***KiotaCodeGenerator*** - Generates a single file C# REST API Client using the Microsoft project **[Kiota v1.8.0](https://learn.microsoft.com/en-us/openapi/kiota/)** generator. The output file is the result of merging all the files generated using the Kiota dotnet tool with: ` generate -l CSharp -d [swagger file] -o [output file] -n [default namespace]` diff --git a/docs/VisualStudioForMac.md b/docs/VisualStudioForMac.md index b87ed4ffc8..a007e64e63 100644 --- a/docs/VisualStudioForMac.md +++ b/docs/VisualStudioForMac.md @@ -18,7 +18,7 @@ A collection of Visual Studio C# custom tool code generators for Swagger / OpenA The output file is the result of merging all the files generated using the OpenAPI Generator tool with: ` generate -g csharp --input-spec [swagger file] --output [output file] -DapiTests=false -DmodelTests=false -DpackageName=[default namespace] --skip-overwrite` -- ***KiotaCodeGenerator*** - Generates a single file C# REST API Client using the Microsoft project **[Kiota v1.7.0](https://learn.microsoft.com/en-us/openapi/kiota/)** generator. +- ***KiotaCodeGenerator*** - Generates a single file C# REST API Client using the Microsoft project **[Kiota v1.8.0](https://learn.microsoft.com/en-us/openapi/kiota/)** generator. The output file is the result of merging all the files generated using the Kiota dotnet tool with: ` generate -l CSharp -d [swagger file] -o [output file] -n [default namespace]` diff --git a/src/CLI/ApiClientCodeGen.CLI/Commands/CSharp/KiotaCommand.cs b/src/CLI/ApiClientCodeGen.CLI/Commands/CSharp/KiotaCommand.cs index 69360b2bb6..28ed8d774e 100644 --- a/src/CLI/ApiClientCodeGen.CLI/Commands/CSharp/KiotaCommand.cs +++ b/src/CLI/ApiClientCodeGen.CLI/Commands/CSharp/KiotaCommand.cs @@ -7,7 +7,7 @@ namespace Rapicgen.CLI.Commands.CSharp; -[Command("kiota", Description = "Microsoft Kiota (v1.7.0)")] +[Command("kiota", Description = "Microsoft Kiota (v1.8.0)")] public class KiotaCommand : CodeGeneratorCommand { private readonly IProcessLauncher processLauncher; diff --git a/src/Core/ApiClientCodeGen.Core.Tests/Installer/DependencyInstallerTests.cs b/src/Core/ApiClientCodeGen.Core.Tests/Installer/DependencyInstallerTests.cs index 9b8768c56c..5e55912242 100644 --- a/src/Core/ApiClientCodeGen.Core.Tests/Installer/DependencyInstallerTests.cs +++ b/src/Core/ApiClientCodeGen.Core.Tests/Installer/DependencyInstallerTests.cs @@ -90,7 +90,7 @@ public void InstallKiota_Invokes_ProcessLauncher( .Verify( c => c.Start( It.IsAny(), - "tool install --global Microsoft.OpenApi.Kiota --version 1.7.0", + "tool install --global Microsoft.OpenApi.Kiota --version 1.8.0", null)); } @@ -104,7 +104,7 @@ public void InstallKiota_Ignores_ProcessLauncherException_For_Already_Installed( .Throws( new ProcessLaunchException( "dotnet", - "tool install --global Microsoft.OpenApi.Kiota --version 1.7.0", + "tool install --global Microsoft.OpenApi.Kiota --version 1.8.0", null, string.Empty, "Tool 'microsoft.openapi.kiota' is already installed.")); diff --git a/src/Core/ApiClientCodeGen.Core/Generators/Kiota/KiotaCodeGenerator.cs b/src/Core/ApiClientCodeGen.Core/Generators/Kiota/KiotaCodeGenerator.cs index b9bd58a641..4b3263f257 100644 --- a/src/Core/ApiClientCodeGen.Core/Generators/Kiota/KiotaCodeGenerator.cs +++ b/src/Core/ApiClientCodeGen.Core/Generators/Kiota/KiotaCodeGenerator.cs @@ -44,6 +44,6 @@ public string GenerateCode(IProgressReporter? pGenerateProgress) var output = CSharpFileMerger.MergeFiles(outputFolder); pGenerateProgress?.Progress(100); - return GeneratedCode.PrefixAutogeneratedCodeHeader(output, "Kiota", "v1.7.0"); + return GeneratedCode.PrefixAutogeneratedCodeHeader(output, "Kiota", "v1.8.0"); } } \ No newline at end of file diff --git a/src/Core/ApiClientCodeGen.Core/Installer/DependencyInstaller.cs b/src/Core/ApiClientCodeGen.Core/Installer/DependencyInstaller.cs index 0b56d81f20..a216de66a6 100644 --- a/src/Core/ApiClientCodeGen.Core/Installer/DependencyInstaller.cs +++ b/src/Core/ApiClientCodeGen.Core/Installer/DependencyInstaller.cs @@ -52,7 +52,7 @@ public void InstallKiota() try { var command = PathProvider.GetDotNetPath(); - const string arguments = "tool install --global Microsoft.OpenApi.Kiota --version 1.7.0"; + const string arguments = "tool install --global Microsoft.OpenApi.Kiota --version 1.8.0"; using var context = new DependencyContext(command, $"{command} {arguments}"); processLauncher.Start(command, arguments); context.Succeeded(); diff --git a/src/VSIX/ApiClientCodeGen.VSIX.Dev17/VSCommandTable.vsct b/src/VSIX/ApiClientCodeGen.VSIX.Dev17/VSCommandTable.vsct index 89ffa1ea2e..b15c810acf 100644 --- a/src/VSIX/ApiClientCodeGen.VSIX.Dev17/VSCommandTable.vsct +++ b/src/VSIX/ApiClientCodeGen.VSIX.Dev17/VSCommandTable.vsct @@ -44,7 +44,7 @@