DotNetCoreMSBuildSettings Class

Summary

Contains settings used by DotNetCoreMSBuildBuilder.
graph BT Type-->Base0["DotNetCoreSettings"] click Base0 "/api/Cake.Common.Tools.DotNetCore/DotNetCoreSettings" Base0-->Base1["ToolSettings"] click Base1 "/api/Cake.Core.Tooling/ToolSettings" Base1-->Base2["object"] Type["DotNetCoreMSBuildSettings"] class Type type-node

Syntax

public sealed class DotNetCoreMSBuildSettings : DotNetCoreSettings

Constructors

Name Summary
DotNetCoreMSBuildSettings() Initializes a new instance of the DotNetCoreMSBuildSettings class.

Properties

Name Value Summary
ArgumentCustomization Func<ProcessArgumentBuilder, ProcessArgumentBuilder>
Gets or sets the argument customization. Argument customization is a way that lets you add, replace or reuse arguments passed to a tool. This allows you to support new tool arguments, customize arguments or address potential argument issues.
Inherited from ToolSettings
BinaryLogger MSBuildBinaryLoggerSettings
Gets or sets the binary logging options.
ConsoleLoggerSettings MSBuildLoggerSettings
Gets or sets the parameters for the console logger.
DetailedSummary bool
Gets or sets a value indicating whether to show detailed information at the end of the build log about the configurations that were built and how they were scheduled to nodes.
DiagnosticOutput bool
Gets or sets a value indicating whether to not enable diagnostic output.
Inherited from DotNetCoreSettings
DisableConsoleLogger bool
Gets or sets a value indicating whether to disable the default console logger, and not log events to the console.
DistributedFileLogger bool
Gets or sets a value indicating whether to log the build output of each MSBuild node to its own file.
DistributedLoggers ICollection<MSBuildDistributedLogger>
Gets the distributed loggers to use.
EnvironmentVariables IDictionary<string, string>
Gets or sets search paths for files, directories for temporary files, application-specific options, and other similar information.
Inherited from ToolSettings
ExcludeAutoResponseFiles bool
Gets or sets a value indicating whether to exclude any MSBuild.rsp files automatically.
FileLoggers ICollection<MSBuildFileLoggerSettings>
Gets the file loggers to use.
HandleExitCode Func<int, bool>
Gets or sets whether the exit code from the tool process causes an exception to be thrown.

If the delegate is null (the default) or returns false, then an exception is thrown upon a non-zero exit code.

If the delegate returns true then no exception is thrown.

This can be useful when the exit code should be ignored, or if there is a desire to apply logic that is conditional on the exit code value.

Inherited from ToolSettings
IgnoreProjectExtensions ICollection<string>
Gets or sets extensions to ignore when determining which project file to build.
Loggers ICollection<MSBuildLogger>
Gets the loggers to use to log events from MSBuild.
MaxCpuCount int?
Gets or sets the maximum number of concurrent processes to use when building.
NoLogo bool
Gets or sets a value indicating whether to display the startup banner and the copyright message.
NoWorkingDirectory bool
Gets or sets a value indicating whether or not to opt out of using an explicit working directory for the process.
Inherited from ToolSettings
Properties IDictionary<string, ICollection<string>>
Gets the project-level properties to set or override.
ResponseFiles ICollection<FilePath>
Gets the response files to use.
Targets ICollection<string>
Gets the targets to build in the project.
ToolPath FilePath
Gets or sets the tool path.
Inherited from ToolSettings
ToolTimeout TimeSpan?
Gets or sets optional timeout for tool execution.
Inherited from ToolSettings
ToolVersion MSBuildVersion?
Gets or sets the version of the Toolset to use to build the project.
TreatAllWarningsAs MSBuildTreatAllWarningsAs
Gets or sets a value indicating how all warnings should be treated.
ValidateProjectFile bool
Gets or sets a value indicating whether to validate the project file and, if validation succeeds, build the project.
Verbosity DotNetCoreVerbosity?
Gets or sets the verbosity of logging to use.
Inherited from DotNetCoreSettings
WarningCodesAsError IList<string>
Gets the warning codes to treats as errors.
WarningCodesAsMessage IList<string>
Gets the warning codes to treats as low importance messages.
WorkingDirectory DirectoryPath
Gets or sets the working directory for the tool process.
Inherited from ToolSettings

Extension Methods

Name Value Summary
AddFileLogger() DotNetCoreMSBuildSettings
Adds a file logger with all the default settings.
AddFileLogger(MSBuildFileLoggerSettings) DotNetCoreMSBuildSettings
Adds a file logger.
DisableConsoleLogger() DotNetCoreMSBuildSettings
Disables the default console logger, and not log events to the console.
Dump<DotNetCoreMSBuildSettings>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
EnableBinaryLogger() DotNetCoreMSBuildSettings
Enables the binary logger with all the default settings.
EnableBinaryLogger(MSBuildBinaryLoggerImports) DotNetCoreMSBuildSettings
Enables the binary logger with the specified imports and default file name.
EnableBinaryLogger(string) DotNetCoreMSBuildSettings
Enables the binary logger with the specified log file name and no imports.
EnableBinaryLogger(string, MSBuildBinaryLoggerImports) DotNetCoreMSBuildSettings
Enables the binary logger with the specified log file name and imports.
ExcludeAutoResponseFiles() DotNetCoreMSBuildSettings
Exclude any MSBuild.rsp files automatically.
HideLogo() DotNetCoreMSBuildSettings
Hide the startup banner and the copyright message.
IsIn<DotNetCoreMSBuildSettings>(DotNetCoreMSBuildSettings[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<DotNetCoreMSBuildSettings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
NotNull<DotNetCoreMSBuildSettings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
SetConfiguration(string) DotNetCoreMSBuildSettings
Sets the configuration.
SetConsoleLoggerSettings(MSBuildLoggerSettings) DotNetCoreMSBuildSettings
Sets the parameters for the console logger.
SetFileVersion(string) DotNetCoreMSBuildSettings
Sets the file version.
SetInformationalVersion(string) DotNetCoreMSBuildSettings
Sets the informational version.
SetMaxCpuCount(int?) DotNetCoreMSBuildSettings
Sets the maximum CPU count. Without this set MSBuild will compile projects in this solution one at a time.
SetRuntime(string) DotNetCoreMSBuildSettings
Sets a target operating systems where the application or assembly will run.
SetTargetFramework(string) DotNetCoreMSBuildSettings
Adds a framework to target.
SetVersion(string) DotNetCoreMSBuildSettings
Sets the version.
SetVersionPrefix(string) DotNetCoreMSBuildSettings
Sets the version prefix.
SetVersionSuffix(string) DotNetCoreMSBuildSettings
Sets the version Suffix.
SetWarningCodeAsError(string) DotNetCoreMSBuildSettings
Sets the warning code to treats as an error.
SetWarningCodeAsMessage(string) DotNetCoreMSBuildSettings
Sets the warning code to treats as a message.
ShowDetailedSummary() DotNetCoreMSBuildSettings
Shows detailed information at the end of the build log about the configurations that were built and how they were scheduled to nodes.
SuppressVersionRecommendedFormatWarning() DotNetCoreMSBuildSettings
Suppress warning CS7035. This is useful when using semantic versioning and either the file or informational version doesn't match the recommended format. The recommended format is: major.minor.build.revision where each is an integer between 0 and 65534 (inclusive).
ThrowIfNull<DotNetCoreMSBuildSettings>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<DotNetCoreMSBuildSettings>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
TreatAllWarningsAs(MSBuildTreatAllWarningsAs) DotNetCoreMSBuildSettings
Sets how all warnings should be treated.
UseDistributedFileLogger() DotNetCoreMSBuildSettings
Log the build output of each MSBuild node to its own file.
UseToolVersion(MSBuildVersion) DotNetCoreMSBuildSettings
Sets the version of the Toolset to use to build the project.
ValidateProjectFile() DotNetCoreMSBuildSettings
Validate the project file and, if validation succeeds, build the project.
WithDistributedLogger(MSBuildDistributedLogger) DotNetCoreMSBuildSettings
Adds a distributed loggers to use.
WithIgnoredProjectExtension(string) DotNetCoreMSBuildSettings
Adds a extension to ignore when determining which project file to build.
WithLogger(string, string, string) DotNetCoreMSBuildSettings
Adds a custom logger.
WithProperty(string, string[]) DotNetCoreMSBuildSettings
Adds a property to the configuration.
WithResponseFile(FilePath) DotNetCoreMSBuildSettings
Adds a response file to use.
WithTarget(string) DotNetCoreMSBuildSettings
Adds a MSBuild target to the configuration.