BoxerlRenovierer 1.0.0-pre.8

This is a prerelease version of BoxerlRenovierer.
dotnet add package BoxerlRenovierer --version 1.0.0-pre.8                
NuGet\Install-Package BoxerlRenovierer -Version 1.0.0-pre.8                
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="BoxerlRenovierer" Version="1.0.0-pre.8" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BoxerlRenovierer --version 1.0.0-pre.8                
#r "nuget: BoxerlRenovierer, 1.0.0-pre.8"                
#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.
// Install BoxerlRenovierer as a Cake Addin
#addin nuget:?package=BoxerlRenovierer&version=1.0.0-pre.8&prerelease

// Install BoxerlRenovierer as a Cake Tool
#tool nuget:?package=BoxerlRenovierer&version=1.0.0-pre.8&prerelease                

BoxerlRenovierer

This package enables you to redefine Dotnet Aspire Container references with compose.yml files.

The idea here is to minimally compatible with docker-compose.yml files so that tools (eg. Renovate) that already support these files can be used to pin and update the referenced containers used in the Aspire configuration.

Usage

Add reference

Add nuget package to your Aspire project:

dotnet add package BoxerlRenovierer

Ensure that you have set IsAspireProjectResource to false on the reference, like:

<PackageReference Include="BoxerlRenovierer" Version="1.0.0-pre.1" IsAspireProjectResource="false"/>

See https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/dotnet-aspire-sdk#project-references why this is necessary.

Add compose.yml

Add a minimalistic compose.yml to your project, that reference your Aspire containers by name.

For this Aspire container definition

builder.AddContainer("smtp", "docker.io/mailhog/mailhog");

It can be

version: '3.3'
services:
  smtp:
    image: docker.io/mailhog/mailhog:1.0.1@sha256:8d76a3d4ffa32a3661311944007a415332c4bb855657f4f6c57996405c009bea

See how the image references the concrete version and sha256 tag of the container. This reference can be updated by tools, eg. by Renovate

Enable BoxerlRenovierer

Add one line of configuration to your Aspire host.

builder.WithContainerVersionPinning();

This enables all containers that are referenced by the container.yml to be managed by BoxerlRenovierer

References

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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.0.0-pre.8 115 2/17/2025
1.0.0-pre.7 32 2/17/2025
1.0.0-pre.6 28 2/17/2025
1.0.0-pre.5 30 2/17/2025
1.0.0-pre.4 36 2/17/2025
1.0.0-pre.3 28 2/17/2025
1.0.0-pre.1 72 2/16/2025