Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithToolVersion

Method
📦 Aspire.Hosting v17.0.0
func (DotnetToolResource) WithToolVersion(version string) DotnetToolResource

Signature

methodWithToolVersionbuilder
Sets the package version for a tool to use.
WithToolVersion(version string) DotnetToolResource
versionstringThe package version to use
DotnetToolResource

The resource builder.

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

Applies to

This method applies to the following types: