VOOZH about

URL: https://www.nuget.org/packages/ricaun.Nuke/

⇱ NuGet Gallery | ricaun.Nuke 1.12.0




👁 Image
ricaun.Nuke 1.12.0

Prefix Reserved
dotnet add package ricaun.Nuke --version 1.12.0
 
 
NuGet\Install-Package ricaun.Nuke -Version 1.12.0
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ricaun.Nuke" Version="1.12.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ricaun.Nuke" Version="1.12.0" />
 
Directory.Packages.props
<PackageReference Include="ricaun.Nuke" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ricaun.Nuke --version 1.12.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ricaun.Nuke, 1.12.0"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ricaun.Nuke@1.12.0
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ricaun.Nuke&version=1.12.0
 
Install as a Cake Addin
#tool nuget:?package=ricaun.Nuke&version=1.12.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

ricaun.Nuke

This package is to simplify the build automation system using Nuke.Common.

👁 Visual Studio 2022
👁 Nuke
👁 Build
👁 Release

Examples

Build.cs - IPublish

using Nuke.Common;
using Nuke.Common.Execution;
using ricaun.Nuke;
using ricaun.Nuke.Components;

class Build : NukeBuild, IPublish
{
 // string IHazMainProject.MainName => "ProjectName";
 public static int Main() => Execute<Build>(x => x.From<IPublish>().Build);
}

Environment Variables

env:
 GitHubToken: ${{ secrets.GITHUB_TOKEN }}
 SignFile: ${{ secrets.SIGN_FILE }}
 SignPassword: ${{ secrets.SIGN_PASSWORD }}

Build.cs - IPublishPack

using Nuke.Common;
using Nuke.Common.Execution;
using ricaun.Nuke;
using ricaun.Nuke.Components;

class Build : NukeBuild, IPublishPack
{
 // string IHazMainProject.MainName => "ProjectName";
 public static int Main() => Execute<Build>(x => x.From<IPublishPack>().Build);
}

Environment Variables

Publish Github

env:
 GitHubToken: ${{ secrets.GITHUB_TOKEN }}

SignFile and SignPassword

env:
 GitHubToken: ${{ secrets.GITHUB_TOKEN }}
 SignFile: ${{ secrets.SIGN_FILE }}
 SignPassword: ${{ secrets.SIGN_PASSWORD }}

SignFile could be a file/url/Base64 to the certificate file. SignPassword is the password to the certificate file.

SignFile using Azure Key Vault

To simplify the configuration to sign with Azure Key Vault using the same environment variables are used SignFile and SignPassword.

env:
 GitHubToken: ${{ secrets.GITHUB_TOKEN }}
 SignFile: ${{ secrets.SIGN_FILE_AZURE }}
 SignPassword: ${{ secrets.SIGN_PASSWORD_AZURE }}
SIGN_FILE_AZURE

The SIGN_FILE_AZURE is a json with the base configuration of the certificated in the Azure Key Vault:

{
 "AzureKeyVaultCertificate": "AzureKeyVaultCertificate",
 "AzureKeyVaultUrl": "AzureKeyVaultUrl",
 "AzureKeyVaultClientId": "AzureKeyVaultClientId",
 "AzureKeyVaultTenantId": "AzureKeyVaultTenantId",
 "TimestampUrl" : "http://timestamp.digicert.com"
 "TimestampDigest" : "sha256"
}

The TimestampUrl and TimestampDigest are optional.

SIGN_PASSWORD_AZURE

The SIGN_PASSWORD_AZURE is the AzureKeyVaultClientSecret of the Azure Key Vault certificate.

Publish Package NuGet

env:
 GitHubToken: ${{ secrets.GITHUB_TOKEN }}
 SignFile: ${{ secrets.SIGN_FILE }}
 SignPassword: ${{ secrets.SIGN_PASSWORD }}
 NuGetApiUrl: ${{ secrets.NUGET_API_URL }}
 NuGetApiKey: ${{ secrets.NUGET_API_KEY }}

Build.cs - ITest

ITest runs all the TestLocalProjectName tests on local build and server build.

using Nuke.Common;
using Nuke.Common.Execution;
using ricaun.Nuke;
using ricaun.Nuke.Components;

class Build : NukeBuild, IPublish, ITest
{
 // bool ITest.TestBuildStopWhenFailed => true;
 // string ITest.TestProjectName => "*.Tests";
 public static int Main() => Execute<Build>(x => x.From<IPublish>().Build);
}

Build.cs - ITestLocal

ITestLocal runs all the TestLocalProjectName tests only on local build.

using Nuke.Common;
using Nuke.Common.Execution;
using ricaun.Nuke;
using ricaun.Nuke.Components;

class Build : NukeBuild, IPublish, ITestLocal
{
 // bool ITestLocal.TestLocalBuildStopWhenFailed => true;
 // string ITestLocal.TestLocalProjectName => "*.Tests";
 public static int Main() => Execute<Build>(x => x.From<IPublish>().Build);
}

Build.cs - ITestServer

ITestServer runs all the TestServerProjectName tests only on server build.

using Nuke.Common;
using Nuke.Common.Execution;
using ricaun.Nuke;
using ricaun.Nuke.Components;

class Build : NukeBuild, IPublish, ITestServer
{
 // bool ITestServer.TestServerBuildStopWhenFailed => true;
 // string ITestServer.TestServerProjectName => "*.Tests";
 public static int Main() => Execute<Build>(x => x.From<IPublish>().Build);
}

License

This package is under the MIT License.


Do you like this package? Please !


Copyright © 2021 ricaun

Product Versions Compatible and additional computed target framework versions.
.NET net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ricaun.Nuke:

Package Downloads
ricaun.Nuke.PackageBuilder

Nuke PackageBuilder for Autodesk Application.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.12.0 697 4/30/2026
1.11.3 415 4/16/2026
1.11.2 555 4/1/2026
1.11.1 695 2/12/2026
1.11.0 179 2/12/2026
Loading failed