Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithToolSource

Method
📦 Aspire.Hosting v17.0.0
func (DotnetToolResource) 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().

Applies to

This method applies to the following types: