MLgentDev.Nuke.Kiota

kiota tool integration for nuke


Keywords
kiota, nuke, openapi
License
MIT
Install
Install-Package MLgentDev.Nuke.Kiota -Version 0.1.0

Documentation

KiotaTasks for nuke

kiota tool integration for nuke

Project Status: Minimal Support

This project is provided as-is, with no guarantee of ongoing support or active development. While I may make occasional improvements when I have time, I do not actively maintain or provide support for this library.

Contributions & Issues

  • Feel free to submit pull requests if you’d like to improve the project.
  • Issues can be reported, but I may not respond or address them in a timely manner.
  • If you're interested in taking over maintenance, feel free to open a discussion.

Usage

Install kiota as a global tool

dotnet tool install --global Microsoft.OpenApi.Kiota

Add package to the project

dotnet add package MLgentDev.Nuke.Kiota --version 0.1.0

Example

using MLgentDev.Nuke.Common.Tools.Kiota;
...
KiotaTasks.KiotaGenerate(options => options
    .SetLanguage(GenerationLanguage.CSharp)
    .SetNamespaceName("Namespace")
    .SetClassName("Client")
    .SetOpenapi("path/to/openapi")
    .SetOutput("path/to/output/folder"));

Build

  • dotnet 8 and 9 should be installed

Install nuke

dotnet tool install Nuke.GlobalTool --global

Clone kiota repository

nuke CloneKiota

Install kiota as global tool (required by tests)

dotnet tool install --global Microsoft.OpenApi.Kiota

Build

nuke MakeAllCi

Inspired by

Nuke.NuGetKeyVaultSignTool written by ricaun and merged to nuke by this pull request Support for NuGetKeyVaultSignTool