Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

DotnetToolResource.WithToolSource

Method
📦 Aspire.Hosting v17.0.0
type DotnetToolResource interface {
// ... omitted for brevity
WithToolSource(source string) DotnetToolResource
}

Signature

methodWithToolSourcebuilder
Adds a NuGet package source for tool acquisition.
WithToolSource(source string) DotnetToolResource
sourcestringThe source to add.
DotnetToolResource

The resource builder.

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

Defined on

This method is defined on the following type: