Toxic.Aspire.Extensions 13.0.3

dotnet add package Toxic.Aspire.Extensions --version 13.0.3
                    
NuGet\Install-Package Toxic.Aspire.Extensions -Version 13.0.3
                    
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="Toxic.Aspire.Extensions" Version="13.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Toxic.Aspire.Extensions" Version="13.0.3" />
                    
Directory.Packages.props
<PackageReference Include="Toxic.Aspire.Extensions" />
                    
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 Toxic.Aspire.Extensions --version 13.0.3
                    
#r "nuget: Toxic.Aspire.Extensions, 13.0.3"
                    
#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 Toxic.Aspire.Extensions@13.0.3
                    
#: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=Toxic.Aspire.Extensions&version=13.0.3
                    
Install as a Cake Addin
#tool nuget:?package=Toxic.Aspire.Extensions&version=13.0.3
                    
Install as a Cake Tool

Toxic.Aspire.Extensions

Provides common extensions for Aspire projects.

How to use

  1. Add the Toxic.Aspire.Extensions nuget to your AppHost project. The major version number of the package version aligns with the corresponding Aspire version.
  2. Add using Toxic.Aspire.Extensions.

Included

IDistributedApplicationBuilder.GetAzureResourceName()

Returns a standardized Azure resource name according to the following convention: prefix-project-workload-environment (example: app-lrf-cms-stage, kv-toxic-serviceportal-prod).

Use it inside ConfigureInfrastructure or PublishAsXxx - see the example AppHost project in the repo for more details.

IDistributedApplicationBuilder.WithCodespaces()

Adds a CodespaceUrlService and CodespaceOptions to the service provider that can provide information about the Codespace if Aspire is running within one.

ExecutionContext.IsRunningInCodespace

Returns true if Aspire is running inside a GitHub Codespace.

IResourceBuilder.WithNewRelicTelemetry()

Redirects OTEL telemetry to a New Relic instance.

IResourceBuilder.WithUmbraco()

Tags a resource as an Umbraco application which has the following effects:

  • Rewrites the application and backoffice URL:s if Aspire is running inside a GitHub Codespace (requires calling DistributedApplicationBuilder.WithCodespaces())

You can check if a resource has been tagged as an Umbraco application in your own extensions with IsUmbraco().

AzureResourceInfrastructure.GetProvisionableResource<>()

Shortcut for the ubiquitous

infra.GetProvisionableResources()
     .OfType<TResource>()
     .Single();

ResourceBuilder.ExcludeFromManifest()

ResourceBuilder.ExcludeFromDevelopmentManifest()

ResourceBuilder.ExcludeFromStagingManifest()

ResourceBuilder.ExcludeFromProductionManifest()

Shortcuts for excluding a resource from being published in certain environments.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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

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
13.0.3 0 11/12/2026
13.0.2 159 10/20/2026
13.0.1 170 9/3/2026