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
<PackageReference Include="Toxic.Aspire.Extensions" Version="13.0.3" />
<PackageVersion Include="Toxic.Aspire.Extensions" Version="13.0.3" />
<PackageReference Include="Toxic.Aspire.Extensions" />
paket add Toxic.Aspire.Extensions --version 13.0.3
#r "nuget: Toxic.Aspire.Extensions, 13.0.3"
#:package Toxic.Aspire.Extensions@13.0.3
#addin nuget:?package=Toxic.Aspire.Extensions&version=13.0.3
#tool nuget:?package=Toxic.Aspire.Extensions&version=13.0.3
Toxic.Aspire.Extensions
Provides common extensions for Aspire projects.
How to use
- Add the
Toxic.Aspire.Extensionsnuget to your AppHost project. The major version number of the package version aligns with the corresponding Aspire version. - 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 | Versions 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. |
-
net10.0
- Aspire.Hosting (>= 13.6.5)
- Aspire.Hosting.Azure (>= 13.6.5)
- Azure.Provisioning.AppConfiguration (>= 1.1.0)
- Azure.Provisioning.AppContainers (>= 1.3.0)
- Azure.Provisioning.AppService (>= 1.3.1)
- Azure.Provisioning.ContainerRegistry (>= 1.1.0)
- Azure.Provisioning.KeyVault (>= 1.1.0)
- Azure.Provisioning.Network (>= 1.1.0)
- Azure.Provisioning.OperationalInsights (>= 1.1.0)
- Azure.Provisioning.Redis (>= 1.1.0)
- Azure.Provisioning.RedisEnterprise (>= 1.1.0)
- Azure.Provisioning.ServiceBus (>= 1.1.0)
- Azure.Provisioning.Sql (>= 1.1.0)
- Azure.Provisioning.Storage (>= 1.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.