Override the ToolsVersion Settings Using the ToolsVersion Parameter of the MSBuild Task

The MSBuild task is the primary means for one project to build
another. To enable the MSBuild task to build a project with a
different ToolsVersion than the one specified in the project, it
provides an optional task parameter named ToolsVersion

<MSBuild Projects="MyProject1"
Targets="Build"
Properties="Configuration=Debug"
ToolsVersion="2.0">
<Output TaskParameter="TargetOutputs" ItemName="Outputs" />
</MSBuild>

No comments:

Post a Comment