Skip to content
Docs Try Aspire

DotnetToolResource

Handle TypeScript
📦 Aspire.Hosting.Testing v13.2.0-preview.1.26159.1
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

method withToolIgnoreExistingFeeds builder
Ignores existing NuGet feeds
withToolIgnoreExistingFeeds(): DotnetToolResource
DotnetToolResource
method withToolIgnoreFailedSources builder
Ignores failed NuGet sources
withToolIgnoreFailedSources(): DotnetToolResource
DotnetToolResource
method withToolPackage builder
Sets the tool package ID
withToolPackage(packageId: string): DotnetToolResource
packageId string
DotnetToolResource
method withToolPrerelease builder
Allows prerelease tool versions
withToolPrerelease(): DotnetToolResource
DotnetToolResource
method withToolSource builder
Adds a NuGet source for the tool
withToolSource(source: string): DotnetToolResource
source string
DotnetToolResource
method withToolVersion builder
Sets the tool version
withToolVersion(version: string): DotnetToolResource
version string
DotnetToolResource