Skip to content
Docs Try Aspire

ContainerFileBase Properties

Class Properties 3 members
Base class for files in the container file system (as compared to directories).
Contents Section titled Contents nullable string?
The contents of the file. Setting Contents is mutually exclusive with ContainerFileBase.SourcePath. If both are set, an exception will be thrown.
public string? Contents { get; set; }
ContinueOnError Section titled ContinueOnError nullable bool?
If true, errors creating this file will be ignored and the container creation will continue. Defaults to false.
public bool? ContinueOnError { get; set; }
SourcePath Section titled SourcePath nullable string?
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.
public string? SourcePath { get; set; }