Class MSBuildCommand
- Namespace
- DotNetDo
- Assembly
- DotNetDo.Core.dll
Builds projects with the installed MSBuild toolset selected by MSBuild Locator.
public sealed record MSBuildCommand : ExecToolCommand, IEquatable<ExecOptions>, IEquatable<ToolCommand>, IEquatable<ToolCommand<ExecResult>>, IEquatable<ExecToolCommand>, IEquatable<MSBuildCommand>Inheritance
Implements
Constructors
MSBuildCommand()
Creates an MSBuild invocation targeting DotNetDo.Do.Solution.
public MSBuildCommand()Properties
BinaryLogger
Optional binary log path; use an empty string to request the default msbuild.binlog.
public string? BinaryLogger { get; init; }Property Value
CommandParts
Gets every canonically ordered rendered command fragment.
protected override IReadOnlyList<string?> CommandParts { get; }Property Value
GraphBuild
Whether project-reference graphs are built concurrently.
public bool? GraphBuild { get; init; }Property Value
- bool?
Interactive
Whether interactive actions are allowed during the build.
public bool? Interactive { get; init; }Property Value
- bool?
IsolateProjects
Whether project-isolation constraints are enforced.
public bool? IsolateProjects { get; init; }Property Value
- bool?
MaxCpuCount
Maximum number of concurrent MSBuild processes; an omitted value uses one process.
public int? MaxCpuCount { get; init; }Property Value
- int?
NoConsoleLogger
Whether the default console logger is disabled.
public bool NoConsoleLogger { get; init; }Property Value
NodeReuse
Whether node reuse remains enabled after the build.
public bool? NodeReuse { get; init; }Property Value
- bool?
NoLogo
Whether the startup banner is hidden.
public bool NoLogo { get; init; }Property Value
Preprocess
Optional preprocessed project output path.
public string? Preprocess { get; init; }Property Value
Projects
Projects or solutions to build.
public IReadOnlyList<string> Projects { get; init; }Property Value
Properties
Project-level properties to set or override.
public IReadOnlyDictionary<string, string> Properties { get; init; }Property Value
Restore
Whether project references are restored before building.
public bool Restore { get; init; }Property Value
Targets
Targets to build, emitted as one semicolon-delimited target switch.
public IReadOnlyList<string> Targets { get; init; }Property Value
Verbosity
Amount of information written to the build log.
public MSBuildVerbosity? Verbosity { get; init; }