Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithToolPackage

Method
📦 Aspire.Hosting v17.0.0
func (DotnetToolResource) WithToolPackage(packageId string) DotnetToolResource

Signature

methodWithToolPackagebuilder
Sets the package identifier for the tool configuration associated with the resource builder.
WithToolPackage(packageId string) DotnetToolResource
packageIdstringThe package identifier to assign to the tool configuration. Cannot be null.
DotnetToolResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: