Toxic.Aspire.Extensions
13.0.1
See the version list below for details.
dotnet add package Toxic.Aspire.Extensions --version 13.0.1
NuGet\Install-Package Toxic.Aspire.Extensions -Version 13.0.1
<PackageReference Include="Toxic.Aspire.Extensions" Version="13.0.1" />
<PackageVersion Include="Toxic.Aspire.Extensions" Version="13.0.1" />
<PackageReference Include="Toxic.Aspire.Extensions" />
paket add Toxic.Aspire.Extensions --version 13.0.1
#r "nuget: Toxic.Aspire.Extensions, 13.0.1"
#:package Toxic.Aspire.Extensions@13.0.1
#addin nuget:?package=Toxic.Aspire.Extensions&version=13.0.1
#tool nuget:?package=Toxic.Aspire.Extensions&version=13.0.1
Toxic.Aspire.Extensions
Provides common extensions for Aspire projects.
How to use
- Add the
Toxic.Aspire.Extensionsnuget to your AppHost. The first version of the package version aligns with the corresponding Aspire version. - Add
using Toxic.Aspire.Extensions.
Included
DistributedApplicationBuilder.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.
ResourceBuilder.WithNewRelicTelemetry()
Redirects OTEL telemetry to a New Relic instance.
ResourceBuilder.WithUmbraco()
Tags a resource as an Umbraco application which has the following effects:
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.
- 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().
| 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.Azure.KeyVault (>= 13.5.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.