DotnetToolResourceExtensions
Classstaticnet10.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 MethodsIResourceBuilder<DotnetToolResource> Adds a .NET tool resource to the application model.
Adds a .NET tool resource to the distributed application model and configures it for execution via the
dotnet
tool exec command. Configures the tool to use only the specified package sources, ignoring existing NuGet configuration.
Configures the resource to treat package source failures as warnings.
Sets the package identifier for the tool configuration associated with the resource builder.
Allows prerelease versions of the tool to be used
Adds a NuGet package source for tool acquisition.
Sets the package version for a tool to use.