Skip to content
DocsTry Aspire
DocsTry

ContainerFileBase Properties

ClassProperties3 members
Base class for files in the container file system (as compared to directories).
ContentsSection titled Contentsnullablestring?
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; }
ContinueOnErrorSection titled ContinueOnErrornullablebool?
If true, errors creating this file will be ignored and the container creation will continue. Defaults to false.
public bool? ContinueOnError { get; set; }
SourcePathSection titled SourcePathnullablestring?
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; }