Class ContentBuilderParams
- Assembly
- MonoGame.Framework.Content.Pipeline.dll
A list of arguments used by ContentBuilder.
Use Parse(params string[]) to acquire the arguments from the passed cli args.
public record ContentBuilderParams : IEquatable<ContentBuilderParams>
- Inheritance
-
ContentBuilderParams
- Implements
- Inherited Members
Constructors
ContentBuilderParams()
public ContentBuilderParams()
ContentBuilderParams(ContentBuilderParams)
protected ContentBuilderParams(ContentBuilderParams original)
Parameters
originalContentBuilderParams
Properties
CompressContent
Gets or sets if ContentBuilder should compress each built content file.
public bool CompressContent { get; init; }
Property Value
- bool
falseby default.
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
GraphicsProfile
Gets or sets the desired graphics profile for ContentBuilder to build the content for.
public GraphicsProfile GraphicsProfile { get; init; }
Property Value
- GraphicsProfile
HiDef by default.
IntermediateDirectory
Gets or sets the location for the intermediate files for content build relative to the WorkingDirectory.
public string IntermediateDirectory { get; init; }
Property Value
- string
obj/Contentby default.
LogLevel
Gets or sets the logging level of information that ContentBuilder will display to console.
public LogLevel LogLevel { get; init; }
Property Value
Mode
Set the mode in which the content builder is run in. See ContentBuilderMode for available modes.
public ContentBuilderMode Mode { get; init; }
Property Value
- ContentBuilderMode
None by default.
OutputDirectory
Gets or sets the location for the content output relative to the WorkingDirectory.
public string OutputDirectory { get; init; }
Property Value
- string
bin/Contentby default.
Platform
Gets or sets the desired platform for ContentBuilder to build the content for.
public TargetPlatform Platform { get; init; }
Property Value
- TargetPlatform
DesktopGL by default.
RootedIntermediateDirectory
Gets the rooted location of IntermediateDirectory.
public string RootedIntermediateDirectory { get; }
Property Value
RootedOutputDirectory
Gets the rooted location of OutputDirectory.
public string RootedOutputDirectory { get; }
Property Value
RootedSourceDirectory
Gets the rooted location of SourceDirectory.
public string RootedSourceDirectory { get; }
Property Value
Servers
public List<ContentServer> Servers { get; init; }
Property Value
- List<ContentServer>
A collection of ContentServer classes found by scaning all referenced assemblies.
SkipClean
Should the content builder skip cleaning up old content cache data after the build is finished in Builder mode.
public bool SkipClean { get; init; }
Property Value
- bool
falseby default.
SourceDirectory
Gets or sets the location of the content relative to the WorkingDirectory.
public string SourceDirectory { get; init; }
Property Value
- string
Contentby default.
WorkingDirectory
Gets or sets the working directory of the ContentBuilder.
public string WorkingDirectory { get; init; }
Property Value
- string
GetCurrentDirectory() by default.
Methods
Equals(ContentBuilderParams?)
public virtual bool Equals(ContentBuilderParams? other)
Parameters
otherContentBuilderParams
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
Parse(params string[])
Parses out the main entry point args into a ContentBuilderParams to be used by ContentBuilder.
public static ContentBuilderParams Parse(params string[] args)
Parameters
argsstring[]Arguments passed to the main entry point of the app.
Returns
- ContentBuilderParams
ContentBuilderParams containing the parsed arguments, or an empty ContentBuilderParams if no arguments were passed.
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
<Clone>$()
public virtual ContentBuilderParams <Clone>$()
Returns
Operators
operator ==(ContentBuilderParams?, ContentBuilderParams?)
public static bool operator ==(ContentBuilderParams? left, ContentBuilderParams? right)
Parameters
leftContentBuilderParamsrightContentBuilderParams
Returns
operator !=(ContentBuilderParams?, ContentBuilderParams?)
public static bool operator !=(ContentBuilderParams? left, ContentBuilderParams? right)
Parameters
leftContentBuilderParamsrightContentBuilderParams