Skip to content
DocsTry Aspire
DocsTry

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
methodwithToolPackagebuilder
Sets the package identifier for the tool configuration associated with the resource builder.
withToolPackage(packageId: string): DotnetToolResource
packageIdstring
DotnetToolResource
methodwithToolPrereleasebuilder
Allows prerelease versions of the tool to be used
withToolPrerelease(): DotnetToolResource
DotnetToolResource
methodwithToolSourcebuilder
Adds a NuGet package source for tool acquisition.
withToolSource(source: string): DotnetToolResource
sourcestring
DotnetToolResource
methodwithToolVersionbuilder
Sets the package version for a tool to use.
withToolVersion(version: string): DotnetToolResource
versionstring
DotnetToolResource