Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

PublishWithContainerFiles

Method
📦 Aspire.Hosting v17.0.0
func (IContainerFilesDestinationResource) PublishWithContainerFiles(
source ResourceWithContainerFiles,
destinationPath string,
) IContainerFilesDestinationResource

Signature

methodPublishWithContainerFilesbuilder
Configures the resource to copy container files from the specified source resource during publishing.
PublishWithContainerFiles(
source ResourceWithContainerFiles,
destinationPath string,
) IContainerFilesDestinationResource
sourceResourceWithContainerFilesThe resource which contains the container files to be copied.
destinationPathstringThe destination path within the resource's container where the files will be copied.
IContainerFilesDestinationResource

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

Applies to

This method applies to the following types: