DotnetToolResourceExtensions
Class static net8.0
Provides extension methods for adding Dotnet Tool resources to the application model.
namespace Aspire.Hosting;
public static class DotnetToolResourceExtensions{ // ...} 8 members
Methods8
Section titled MethodsAddDotnetTool(IDistributedApplicationBuilder, string, string)extensionats exportIResourceBuilder<DotnetToolResource> Adds a .NET tool resource to the application model.
AddDotnetTool(IDistributedApplicationBuilder, T)extensionats ignored Adds a .NET tool resource to the distributed application model and configures it for execution via the
dotnet
tool exec command. WithToolIgnoreExistingFeeds(IResourceBuilder<T>)extensionats export Configures the tool to use only the specified package sources, ignoring existing NuGet configuration.
WithToolIgnoreFailedSources(IResourceBuilder<T>)extensionats export Configures the resource to treat package source failures as warnings.
WithToolPackage(IResourceBuilder<T>, string)extensionats export Sets the package identifier for the tool configuration associated with the resource builder.
WithToolPrerelease(IResourceBuilder<T>)extensionats export Allows prerelease versions of the tool to be used
WithToolSource(IResourceBuilder<T>, string)extensionats export Adds a NuGet package source for tool acquisition.
WithToolVersion(IResourceBuilder<T>, string)extensionats export Sets the package version for a tool to use.