Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 3.3 KB

assignprojectconfiguration-task.md

File metadata and controls

45 lines (37 loc) · 3.3 KB
title description ms.date ms.topic dev_langs author ms.author manager ms.subservice
AssignProjectConfiguration Task
Use the MSBuild AssignProjectConfiguration task to accept a list of configuration strings and assign them to specified projects.
11/04/2016
reference
VB
CSharp
C++
ghogen
ghogen
mijacobs
msbuild

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 xref:Microsoft.Build.Framework.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 xref:Microsoft.Build.Framework.ITaskItem[] output parameter.

Contains the list of resolved reference paths.
UnassignedProjects Optional xref:Microsoft.Build.Framework.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 xref:Microsoft.Build.Tasks.TaskExtension class, which itself inherits from the xref:Microsoft.Build.Utilities.Task class. For a list of these additional parameters and their descriptions, see TaskExtension base class.

See also