Watch Aspire live streamsDocsTry Aspire

publishWithContainerFiles

Method
📦 Aspire.Hosting v13.6.5
interface ProjectResource {
// ... omitted for brevity
publishWithContainerFiles(
source: IResourceWithContainerFiles,
destinationPath: string): IContainerFilesDestinationResource;
}

Signature

methodpublishWithContainerFilesbuilder
Configures the resource to copy container files from the specified source resource during publishing.
publishWithContainerFiles(
source: IResourceWithContainerFiles,
destinationPath: string): IContainerFilesDestinationResource
sourceIResourceWithContainerFilesThe resource which contains the container files to be copied.
destinationPathstringThe destination path within the resource's container where the files will be copied.
IContainerFilesDestinationResource

Applies to

This method applies to the following types: