Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This class represents all of the settings which must be specified to start a build.
public ref class BuildParameters
public class BuildParameters
type BuildParameters = class
Public Class BuildParameters
Constructor for those who intend to set all properties themselves.
Creates BuildParameters from a ProjectCollection.
Indicates whether to emit a default error if a task returns false without logging an error.
Gets the environment variables which were set when this build was created.
Gets or sets the desired thread priority for building.
The name of the culture to use during the build.
The default tools version for the build.
When true, indicates that the build should emit a detailed summary at the end of the log.
When true, indicates the in-proc node should not be used.
Determines whether MSBuild will save the results of builds after EndBuild to speed up future builds.
Flag indicating whether out-of-proc nodes should remain after the build and wait for further builds.
Gets an immutable collection of environment properties.
The collection of forwarding logger descriptions.
Sets or retrieves an immutable collection of global properties.
Interface allowing the host to provide additional control over the build process.
Input cache files that MSBuild will use to read build results from. Setting this also turns on isolated builds.
Gets or sets a value indicating if the build is allowed to interact with the user.
Gets or sets a value indicating whether projects should build in isolation.
Enables or disables legacy threading semantics
The collection of loggers to use during the build.
When true, indicates that the initial properties and items should be logged.
When true, indicates that the task parameters should be logged.
Gets or sets a value indicating whether the build process should run as low priority.
The maximum number of nodes this build may use.
The amount of memory the build should limit itself to using, in megabytes.
The location of the build node executable.
Flag indicating if non-critical logging events should be discarded.
Output cache file where MSBuild will write the contents of its build result caches during EndBuild. Setting this also turns on isolated builds.
If set, the BuildManager will query all incoming BuildSubmission requests against the specified project cache. Any GraphBuildSubmission requests will also use this project cache instead of the potential project caches described in graph node's evaluations.
Indicates that the build should reset the configuration and results caches.
Flag indicating if the operating environment such as the current directory and environment be saved and restored between project builds and task invocations. This should be set to false for any other build managers running in the system so that we do not have two build managers trampling on each others environment.
Shutdown the inprocess node when the build finishes. By default this is false since visual studio needs to keep the inprocess node around after the build finishes.
Locations to search for toolsets.
Returns all of the toolsets.
The name of the UI culture to use during the build.
By default if the number of processes is set to 1 we will use Asynchronous logging. However if we want to use synchronous logging when the number of cpu's is set to 1 this property needs to be set to true.
A list of warnings to treat as errors. To treat all warnings as errors, set this to an empty HashSet<T>.
A list of warnings to treat as low importance messages.
A list of warnings to not treat as errors. Only has any effect if WarningsAsErrors is empty.
Creates a clone of this BuildParameters object. This creates a clone of the logger collections, but does not deep clone the loggers within.
Retrieves a toolset.