Skip to content

MLgentDev/nuke-kiota-tasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KiotaTasks for nuke

kiota tool integration for nuke

NuGet Version GitHub Actions Workflow Status GitHub License

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 

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

About

KiotaTasks for nuke.build

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published