MSBuildProjectSetConfiguration Method

This is used to set the active configuration and platform used when evaluating the properties.

Definition

Namespace: SandcastleBuilder.Utils.MSBuild
Assembly: SandcastleBuilder.Utils (in SandcastleBuilder.Utils.dll) Version: 2024.12.21.0
public void SetConfiguration(
	string configuration,
	string platform,
	string outDir,
	bool usesProjectSpecificOutput
)

Parameters

configuration  String
The active configuration
platform  String
The active platform
outDir  String
The output directory
usesProjectSpecificOutput  Boolean
True if the build is using project-specific output folders, false if not.

Remarks

If the platform is set to any variation of "Any CPU" and it isn't found in the project, it will be converted to "AnyCPU" (no space). This works around an issue with Team Build that includes the space even though it should not be present.

See Also