Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

ResourceWithContainerFiles.WithContainerFilesSource

Method
📦 Aspire.Hosting v17.0.0
type ResourceWithContainerFiles interface {
// ... omitted for brevity
WithContainerFilesSource(sourcePath string) ResourceWithContainerFiles
}

Signature

methodWithContainerFilesSourcebuilder
Adds a container files source annotation to the resource being built, specifying the path to the container files source.
WithContainerFilesSource(sourcePath string) ResourceWithContainerFiles
sourcePathstringThe path to the container files source to associate with the resource. Cannot be null.
ResourceWithContainerFiles

The resource builder instance with the container files source annotation applied.

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

Defined on

This method is defined on the following type: