Watch Aspire live streamsDocsTry Aspire

addDotnetTool

Method
📦 Aspire.Hosting v13.6.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addDotnetTool(
name: string,
packageId: string): DotnetToolResource;
}

Signature

methodaddDotnetToolbuilder
Adds a .NET tool resource to the application model.
addDotnetTool(
name: string,
packageId: string): DotnetToolResource
namestringThe name of the resource.
packageIdstringThe package id of the tool.
DotnetToolResource

Applies to

This method applies to the following types: