Jaahas.Cake.Extensions
2.1.0
See the version list below for details.
dotnet add package Jaahas.Cake.Extensions --version 2.1.0
NuGet\Install-Package Jaahas.Cake.Extensions -Version 2.1.0
<PackageReference Include="Jaahas.Cake.Extensions" Version="2.1.0" />
paket add Jaahas.Cake.Extensions --version 2.1.0
#r "nuget: Jaahas.Cake.Extensions, 2.1.0"
// Install Jaahas.Cake.Extensions as a Cake Addin #addin nuget:?package=Jaahas.Cake.Extensions&version=2.1.0 // Install Jaahas.Cake.Extensions as a Cake Tool #tool nuget:?package=Jaahas.Cake.Extensions&version=2.1.0
About
Jaahas.Cake.Extensions is a recipe package for Cake, used to provide a common way of versioning and running builds using Cake.
How to Use
In the folder where your .NET solution file resides, create a version.json
file that is structured as follows:
{
"Major": 1,
"Minor": 0,
"Patch": 0,
"PreRelease": ""
}
Update your build.cake
file as follows:
const string DefaultSolutionFile = "./MySolution.sln";
const string VersionFile = "./version.json";
#load nuget:?package=Jaahas.Cake.Extensions&version=2.1.0
// Bootstrap build context and tasks.
Bootstrap(DefaultSolutionFile, VersionFile);
// Run the specified target.
Run();
Targets
The recipe supports the following targets (specified by the --target
parameter passed to Cake):
Target | Description | Default Build Configuration |
---|---|---|
Clean |
Cleans the obj , bin , artifacts and TestResults folders for the repository. |
Debug |
Restore |
Restores NuGet packages for the solution. | Debug |
Build |
Builds the solution. | Debug |
Test |
Runs unit tests for the solution. | Debug |
Pack |
Creates NuGet packages for the solution. | Release |
Publish |
Publishes any solution projects that define one or more .pubxml publish profiles under the project folder. |
Release |
PublishContainer |
Publishes container images for any solution projects that are registered as container projects. See below for more information. | Release |
BillOfMaterials |
Generates a Software Bill of Materials (SBOM) for the solution using CycloneDX. | Release |
The Default Build Configuration specifies the default MSBuild configuration used when specifying a target and the --configuration
parameter is not specified.
Publishing Container Images
If your solution contains one or more projects that you want to publish container images for when the PublishContainer
target is specified, you must include the names of the projects (without the project file extension) when calling the Bootstrap()
method in your build.cake
file. For example:
Bootstrap(
DefaultSolutionFile,
VersionFile,
containerProjects: new [] {
"MyFirstContainerProject",
"MySecondContainerProject"
});
Note that projects that publish container images can also define a .pubxml
publish profile for publishing the image via the Publish
target instead.
Additional Documentation
Additional documentation is available on GitHub.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.3.0 | 25 | 11/28/2024 |
2.2.1 | 103 | 9/23/2024 |
2.1.0 | 101 | 9/18/2024 |
2.0.2 | 112 | 6/26/2024 |
2.0.1 | 221 | 4/15/2024 |
2.0.0 | 200 | 4/13/2024 |
1.7.0 | 343 | 8/10/2023 |
1.6.2 | 266 | 3/22/2023 |
1.6.1 | 222 | 3/21/2023 |
1.6.0 | 215 | 3/21/2023 |
1.5.0 | 520 | 9/14/2022 |
1.4.2 | 393 | 8/28/2022 |
1.4.1 | 406 | 8/27/2022 |
1.4.0 | 380 | 8/23/2022 |
1.3.1 | 414 | 8/23/2022 |
1.3.0 | 414 | 8/23/2022 |
1.2.0 | 400 | 8/18/2022 |
1.1.0 | 315 | 1/5/2022 |
1.0.0 | 326 | 12/15/2021 |