AssignProjectConfiguration Task

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see AssignProjectConfiguration Task on docs.microsoft.com. This task accepts a list configuration strings and assigns them to specified projects.

The following table describes the parameters of the AssignProjectConfiguration task.

ParameterDescription
SolutionConfigurationContentsOptional string output parameter.

Contains an XML string containing a project configuration for each project. The configurations are assigned to the named projects.
DefaultToVcxPlatformMappingOptional 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"
VcxToDefaultPlatformMappingOptional

 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"
CurrentProjectConfigurationOptional string output parameter.

Contains the configuration for the current project.
CurrentProjectPlatformOptional string output parameter.

Contains the platform for the current project.
OnlyReferenceAndBuildProjectsEnabledInSolutionConfigurationOptional bool output parameter.

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

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

Contains the output type for the project.
ResolveConfigurationPlatformUsingMappingsOptional 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.
AssignedProjectsOptional ITaskItem[] output parameter.

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

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

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.

Tasks
Task Reference

Show: