Cake.Frosting.PleOps.Recipe
1.0.3
dotnet add package Cake.Frosting.PleOps.Recipe --version 1.0.3
NuGet\Install-Package Cake.Frosting.PleOps.Recipe -Version 1.0.3
<PackageReference Include="Cake.Frosting.PleOps.Recipe" Version="1.0.3" />
paket add Cake.Frosting.PleOps.Recipe --version 1.0.3
#r "nuget: Cake.Frosting.PleOps.Recipe, 1.0.3"
// Install Cake.Frosting.PleOps.Recipe as a Cake Addin #addin nuget:?package=Cake.Frosting.PleOps.Recipe&version=1.0.3 // Install Cake.Frosting.PleOps.Recipe as a Cake Tool #tool nuget:?package=Cake.Frosting.PleOps.Recipe&version=1.0.3
PleOps Cake
Complete DevOps workflow and best-practices for .NET projects based on Cake.
- ♻️ DevOps best practices for a software project
- 🔧 Build, test and release tasks for .NET projects and documentation sites
- 📚 Documentation explaining the workflow
- 📋 Template repository ready to use
Tech stack
- Projects: C# / .NET
- Documentation: DocFX, GitHub page
- CI: GitHub Actions
- Release deployment: NuGet feeds, GitHub
Usage
The project ships a NuGet library with Cake Frosting tasks:
Cake.Frosting.PleOps.Recipe
:
To use it, create a new console application with the Cake Frosting template, add a reference to this recipe NuGet and its tasks will be available to use.
return new CakeHost()
.AddAssembly(typeof(Cake.Frosting.PleOps.Recipe.PleOpsBuildContext).Assembly)
.UseContext<Cake.Frosting.PleOps.Recipe.PleOpsBuildContext>()
.UseLifetime<BuildLifetime>()
.Run(args);
[TaskName("Default")]
[IsDependentOn(typeof(Cake.Frosting.PleOps.Recipe.Common.SetGitVersionTask))]
[IsDependentOn(typeof(Cake.Frosting.PleOps.Recipe.Common.CleanArtifactsTask))]
[IsDependentOn(typeof(Cake.Frosting.PleOps.Recipe.Dotnet.DotnetTasks.BuildProjectTask))]
public sealed class DefaultTask : FrostingTask
{
}
Then just run the project to start the build system:
dotnet run --project build/orchestrator
Pushing commits will trigger a new continuous integration build with a similar output as this:
[!TIP]
Find a detailed setup guide in the documentation site.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Cake.Frosting (>= 4.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
## v1.0.3 (January 31, 2024)
Fixes issue deploying projects to GitHub with no binary artifacts.
## Migration
1. Update the version of PleOps.Cake in your build orchestrator .csproj
2. Update the GitHub Action task versions in your workflow file
## What's Changed
* 🐛 Do not fail uploading binaries to the GitHub release if there are none by @pleonex in https://github.com/pleonex/PleOps.Cake/pull/81
* ⬆️ Update artifacts GitHub Action tasks by @pleonex in https://github.com/pleonex/PleOps.Cake/pull/82
**Full Changelog**: https://github.com/pleonex/PleOps.Cake/compare/v1.0.2...v1.0.3