DotnetToolResource

Handle
📦 Aspire.Hosting v17.0.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
packageIdstringThe package identifier to assign to the tool configuration. Cannot be null.
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
sourcestringThe source to add.
DotnetToolResource
methodwithToolVersionbuilder
Sets the package version for a tool to use.
withToolVersion(version: string): DotnetToolResource
versionstringThe package version to use
DotnetToolResource