Skip to content
Docs Try Aspire
Docs Try

DotnetToolResource

Handle
📦 Aspire.Hosting v13.4.0
interface DotnetToolResource
extends IComputeResource,
IResource,
IResourceWithArgs,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport {
withToolIgnoreExistingFeeds(): DotnetToolResource;
withToolIgnoreFailedSources(): DotnetToolResource;
withToolPackage(packageId: string): DotnetToolResource;
withToolPrerelease(): DotnetToolResource;
withToolSource(source: string): DotnetToolResource;
withToolVersion(version: string): DotnetToolResource;
}

Methods

Configures the tool to use only the specified package sources, ignoring existing NuGet configuration.
withToolIgnoreExistingFeeds(): DotnetToolResource
DotnetToolResource
Configures the resource to treat package source failures as warnings.
withToolIgnoreFailedSources(): DotnetToolResource
DotnetToolResource
method withToolPackage builder
Sets the package identifier for the tool configuration associated with the resource builder.
withToolPackage(packageId: string): DotnetToolResource
packageId string
DotnetToolResource
method withToolPrerelease builder
Allows prerelease versions of the tool to be used
withToolPrerelease(): DotnetToolResource
DotnetToolResource
method withToolSource builder
Adds a NuGet package source for tool acquisition.
withToolSource(source: string): DotnetToolResource
source string
DotnetToolResource
method withToolVersion builder
Sets the package version for a tool to use.
withToolVersion(version: string): DotnetToolResource
version string
DotnetToolResource