Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithContainerFilesSource

Method
📦 Aspire.Hosting v17.0.0
func (ResourceWithContainerFiles) 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().

Applies to

This method applies to the following types: