GiantCroissant.Lunar.Build.NuGet 0.1.1-ci.40

This is a prerelease version of GiantCroissant.Lunar.Build.NuGet.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package GiantCroissant.Lunar.Build.NuGet --version 0.1.1-ci.40
                    
NuGet\Install-Package GiantCroissant.Lunar.Build.NuGet -Version 0.1.1-ci.40
                    
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="GiantCroissant.Lunar.Build.NuGet" Version="0.1.1-ci.40" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GiantCroissant.Lunar.Build.NuGet" Version="0.1.1-ci.40" />
                    
Directory.Packages.props
<PackageReference Include="GiantCroissant.Lunar.Build.NuGet" />
                    
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 GiantCroissant.Lunar.Build.NuGet --version 0.1.1-ci.40
                    
#r "nuget: GiantCroissant.Lunar.Build.NuGet, 0.1.1-ci.40"
                    
#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 GiantCroissant.Lunar.Build.NuGet@0.1.1-ci.40
                    
#: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=GiantCroissant.Lunar.Build.NuGet&version=0.1.1-ci.40&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=GiantCroissant.Lunar.Build.NuGet&version=0.1.1-ci.40&prerelease
                    
Install as a Cake Tool

NuGet Build Components

Streamlined NuGet build automation for the Lunar Build system. This module now favors simple, NUKE-native targets over a heavy service layer.

What You Get (Current)

  • INuGetPackaging: End-to-end targets for restore, pack, clean, and push using NUKE DotNet*/NuGet* tasks.
  • INuGetRepositoryComponent: Config-driven repository paths (BuildConfiguration-aware), with analysis/optimize/validate stubs.
  • INuGetLocalRepoSyncComponent: Copy freshly built .nupkg files to one or more local feeds (flat/hierarchical/both).

Quick Start

Add the component(s) to your NUKE build class:

using Lunar.Build.NuGet;

partial class Build : NukeBuild, INuGetPackaging, INuGetRepositoryComponent
{
    // Compose targets as needed
    Target CI => _ => _
        .DependsOn(Restore)
        .DependsOn(Pack)
        .DependsOn(CleanRepository);
}

To sync built packages to local feeds:

using Lunar.Build.Components; // INuGetLocalRepoSyncComponent

partial class Build : NukeBuild, INuGetLocalRepoSyncComponent
{
    // Configure via config or parameters:
    // - nuget.outputDirectory
    // - nuget.localNugetRepositories (array)
    // - nuget.syncLayout (hierarchical|flat|both)
}

Configuration

  • Repository & feed paths resolve via: parameter → env var → BuildConfiguration → auto-detect → fallback.
  • See Interfaces/INuGetRepositoryComponent.cs and Components/INuGetLocalRepoSyncComponent.cs for keys and behavior.

Legacy (Kept for Reference Only)

The previous service-oriented implementation (services, options, validators, DI extensions, etc.) remains in this folder but is excluded from compilation and packaging. This preserves history and reference material without increasing package surface area.

  • Excluded folders: Services, Options, DependencyInjection, Interfaces (except INuGetRepositoryComponent), Components (compiled only INuGetLocalRepoSyncComponent), Common, NugetPackage, Validation, PreBuild, PostBuild, _Generated.
  • IWorkspaceNuGetComponent is deprecated; still compiled for backward compatibility. Prefer INuGetRepositoryComponent.

If you still need the old behavior, consider copying the relevant code into your build as internal utilities rather than re-enabling it in this package.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  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 GiantCroissant.Lunar.Build.NuGet:

Package Downloads
GiantCroissant.Lunar.Build

Meta-package that depends on the Lunar Build component packages for one-line install.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.1-ci.90 109 9/8/2025
0.1.1-ci.40 95 9/6/2025
0.1.1-ci.21 143 9/4/2025
0.1.1-ci.20 134 9/3/2025
0.1.1-chore-ci-pack-mobile-... 27 9/4/2025

NuGet packaging components with repository management and publishing workflows for Nuke build system.