sharpliner / sharpliner

Use C# instead of YAML to define your Azure DevOps pipelines
https://www.nuget.org/packages/Sharpliner/
MIT License
299 stars 24 forks source link

Create .NET template for Sharpliner projects #77

Open premun opened 3 years ago

premun commented 3 years ago

Not 100% sure how it works but it should be possible to create a dotnet template and then create pipeline projects fast:

dotnet new sharpliner ...

https://docs.microsoft.com/en-us/dotnet/core/tools/custom-templates

Meir017 commented 1 month ago

this project would basically be:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>net8</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Sharpliner" Version="1.5.21" />
  </ItemGroup>

</Project>

then just start adding classes (see the examples)