diff options
author | Wes Haggard <Wes.Haggard@microsoft.com> | 2017-02-02 03:58:21 +0300 |
---|---|---|
committer | Wes Haggard <Wes.Haggard@microsoft.com> | 2017-02-03 02:44:36 +0300 |
commit | 42fca616a903e5c3b60f8108ed025d9ab3b94e97 (patch) | |
tree | 48f062dcf1988fc614fd88254ebb0a60bf01fe8e /buildvertical.targets | |
parent | d00bb5d18ac91189b12ed2fb7131d0ff62da9034 (diff) |
Add solution generation to the UpdateVSConfigurations task
Diffstat (limited to 'buildvertical.targets')
-rw-r--r-- | buildvertical.targets | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/buildvertical.targets b/buildvertical.targets index a5f65247a6..6246f0b53d 100644 --- a/buildvertical.targets +++ b/buildvertical.targets @@ -12,7 +12,7 @@ <!-- Runs during traversal when BuildAllConfigurations is set to expand each project to a seperate instance for each of its BuildConfigurations --> - <Target Name="ExpandAllBuildConfigurations" + <Target Name="ExpandAllBuildConfigurations" Condition="'$(BuildAllConfigurations)' == 'true'"> <MSBuild Targets="GetBuildConfigurations" Projects="@(Project)" @@ -34,7 +34,7 @@ </ItemGroup> </Target> - <!-- Runs during traversal to select which projects and configurations of those projects to build + <!-- Runs during traversal to select which projects and configurations of those projects to build Batches over the projects because we need to treat BuildConfigurations as a Property as well as copy the Project based on results of FindBestConfigurations. --> <Target Name="FilterBuildConfiguration" @@ -89,6 +89,15 @@ <Output TaskParameter="TargetOutputs" PropertyName="_projectReferenceBuildConfigurations" /> </MSBuild> + <PropertyGroup> + <!-- + When building in VS or using the solution file Configuration for some projects is set to Debug/Release + in such cases we should treat it as an empty configuration and set it to be $BuildConfiguration for the + purposes of annotating project references. + --> + <Configuration Condition="'$(Configuration)' == 'Debug' or '$(Configuration)' == 'Release'">$(BuildConfiguration)</Configuration> + </PropertyGroup> + <!-- Find the best configuration for the current Project's Configuration --> <FindBestConfigurations Properties="@(Property)" PropertyValues="@(PropertyValue)" |