ContainerFileBase
Class abstract net10.0
Base class for files in the container file system (as compared to directories).
namespace Aspire.Hosting.ApplicationModel;
public abstract class ContainerFileBase : Aspire.Hosting.ApplicationModel.ContainerFileSystemItem{ // ...}Properties3
Section titled PropertiesContentsget; setstring? The contents of the file. Setting Contents is mutually exclusive with
ContainerFileBase.SourcePath. If both are set, an exception will be thrown. ContinueOnErrorget; setbool? If true, errors creating this file will be ignored and the container creation will continue. Defaults to false.
SourcePathget; setstring? The path to a file on the host system to copy into the container. This path must be absolute and point to a file on the host system. Setting SourcePath is mutually exclusive with
ContainerFileBase.Contents. If both are set, an exception will be thrown.