Summary
Contains functionality related to MSBuild settings.
- Namespace
- Cake
.Common .Tools .MSBuild - Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["MSBuildSettingsExtensions"]
class Type type-node
Syntax
public static class MSBuildSettingsExtensions
Methods
Name | Value | Summary |
---|---|---|
AddFileLogger |
MSBuildSettings |
Adds a file logger.
Each file logger will be declared in the order added.
The first file logger will match up to the /fl parameter.
The next nine (max) file loggers will match up to the /fl1 through /fl9 respectively.
static
|
AddFileLogger |
MSBuildSettings |
Adds a file logger with all the default settings.
Each file logger will be declared in the order added.
The first file logger will match up to the /fl parameter.
The next nine (max) file loggers will match up to the /fl1 through /fl9 respectively.
static
|
EnableBinaryLogger |
MSBuildSettings |
Enables the binary logger with the specified imports and default file name.
static
|
EnableBinaryLogger |
MSBuildSettings |
Enables the binary logger with the specified log file name and imports.
static
|
EnableBinaryLogger |
MSBuildSettings |
Enables the binary logger with the specified log file name and no imports.
static
|
EnableBinaryLogger |
MSBuildSettings |
Enables the binary logger with all the default settings.
static
|
SetAssemblyVersion |
MSBuildSettings |
Sets the assembly version.
static
|
SetConfiguration |
MSBuildSettings |
Sets the configuration.
static
|
Set |
MSBuildSettings |
Sets a value indicating whether to normalize stored file paths used when producing deterministic builds.
static
|
SetDetailedSummary |
MSBuildSettings |
Sets whether or not detailed summary should be enabled.
static
|
SetFileVersion |
MSBuildSettings |
Sets the file version.
static
|
SetIncludeSymbols |
MSBuildSettings |
Sets whether or not a symbol package should be created.
static
|
Set |
MSBuildSettings |
Sets the informational version.
static
|
SetMaxCpuCount |
MSBuildSettings |
Sets the maximum CPU count. Without this set MSBuild will compile projects in this solution one at a time.
static
|
SetMSBuildPlatform |
MSBuildSettings |
Sets the MSBuild platform.
static
|
SetNoConsoleLogger |
MSBuildSettings |
Sets whether or not no console logging should be enabled.
static
|
SetNodeReuse |
MSBuildSettings |
Sets whether or not node reuse should be enabled.
static
|
SetNoImplicitTarget |
MSBuildSettings |
Sets whether or not any targets should be passed to MSBuild.
static
|
SetNoLogo |
MSBuildSettings |
Sets whether or not copyright information at the start of the program should be shown.
static
|
Set |
MSBuildSettings |
Sets the package release notes.
static
|
SetPackageVersion |
MSBuildSettings |
Sets the package version.
static
|
SetPlatformTarget |
MSBuildSettings |
Sets the platform target.
static
|
SetPlatformTarget |
MSBuildSettings |
Sets the platform target.
static
|
SetRestoreLockedMode |
MSBuildSettings |
Sets whether or not to lock the package dependency graph while restoring, using the packages.lock.json file.
This setting is available with atleast Visual Studio 2017 version 15.9 and above or NET SDK version 2.1.500 and above.
static
|
Set |
MSBuildSettings |
Sets the symbol package format.
static
|
SetVerbosity |
MSBuildSettings |
Sets the build log verbosity.
static
|
SetVersion |
MSBuildSettings |
Sets the version.
static
|
SetVersionPrefix |
MSBuildSettings |
Sets the version prefix.
static
|
SetVersionSuffix |
MSBuildSettings |
Sets the version suffix.
static
|
UseToolVersion |
MSBuildSettings |
Sets the tool version.
static
|
UseToolVersion |
MSBuildSettings |
Sets the tool version.
static
|
With |
MSBuildSettings |
Adds a console logger parameter.
static
|
WithLogger |
MSBuildSettings |
Adds a custom logger.
static
|
WithProperty |
MSBuildSettings |
Adds a property to the configuration.
static
|
WithRestore |
MSBuildSettings |
Invoke the Restore target before any other target.
static
|
WithTarget |
MSBuildSettings |
Adds a MSBuild target to the configuration.
static
|
WithWarningsAsError |
MSBuildSettings |
Treat warnings as errors, if no codes specified all errors will be treated as errors.
static
|
With |
MSBuildSettings |
Warnings to not treat as errors.
static
|
Extension Methods
Name | Value | Summary |
---|---|---|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
Returns the string value or a
Not set > markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|