Compartilhar via


AssignProjectConfiguration task

This task accepts a list configuration strings and assigns them to specified projects.

Task parameters

The following table describes the parameters of the AssignProjectConfiguration task.

Parameter Description
ProjectReferences Required ITaskItem[] input parameter.

The projects to configure.
SolutionConfigurationContents Optional string output parameter.

Contains an XML string containing a project configuration for each project. The configurations are assigned to the named projects.
DefaultToVcxPlatformMapping Optional string output parameter.

Contains a semicolon-delimited list of mappings from the platform names used by most types to those used by .vcxproj files.

For example:

"AnyCPU=Win32;X86=Win32;X64=X64"
VcxToDefaultPlatformMapping Optional

string output parameter.

Contains a semicolon-delimited list of mappings from .vcxproj platform names to the platform names use by most types.

For example:

"Win32=AnyCPU;X64=X64"
CurrentProjectConfiguration Optional string output parameter.

Contains the configuration for the current project.
CurrentProjectPlatform Optional string output parameter.

Contains the platform for the current project.
OnlyReferenceAndBuildProjectsEnabledInSolutionConfiguration Optional bool output parameter.

Contains a flag indicating that references should be built even if they were disabled in the project configuration.
ShouldUnsetParentConfigurationAndPlatform Optional bool output parameter.

Contains a flag indicating if the parent configuration and platform should be unset.
OutputType Optional string output parameter.

Contains the output type for the project.
ResolveConfigurationPlatformUsingMappings Optional bool output parameter.

Contains a flag indicating if the build should use the default mappings to resolve the configuration and platform of the passed in project references.
AssignedProjects Optional ITaskItem[] output parameter.

Contains the list of resolved reference paths.
UnassignedProjects Optional ITaskItem[] output parameter.

Contains the list of project reference items that could not be resolved using the pre-resolved list of outputs.

Remarks

In addition to the parameters listed above, this task inherits parameters from the TaskExtension class, which itself inherits from the Task class. For a list of these additional parameters and their descriptions, see TaskExtension base class.

See also