|
22 | 22 | <ItemGroup> |
23 | 23 | <NBGV_CachingProjectReference Include="$(NBGV_CachingProjectReference)"> |
24 | 24 | <Targets>GetBuildVersion_Properties;GetBuildVersion_CloudBuildVersionVars</Targets> |
25 | | - <Properties>$(NBGV_InnerGlobalProperties)BuildMetadata=@(BuildMetadata, ',');PrereleaseIdentifiers=@(PrereleaseIdentifier, ',')</Properties> |
| 25 | + <Properties>$(NBGV_InnerGlobalProperties)BuildMetadata=@(BuildMetadata, ',');PrereleaseIdentifiers=@(PrereleaseIdentifier, ',');Configuration=Release;Platform=AnyCPU</Properties> |
26 | 26 | <SetConfiguration>Configuration=Release</SetConfiguration> |
27 | 27 | <SetPlatform>Platform=AnyCPU</SetPlatform> |
28 | 28 | <GlobalPropertiesToRemove>@(NBGV_GlobalPropertiesToRemove)</GlobalPropertiesToRemove> |
|
50 | 50 | <!-- Calculate version by invoking another "project" with global properties that will serve as a key |
51 | 51 | into an msbuild cache to ensure we only invoke the GetBuildVersion task as many times as will produce a unique value. --> |
52 | 52 | <MSBuild Projects="@(NBGV_CachingProjectReference)" |
53 | | - Properties="%(NBGV_CachingProjectReference.Properties)" |
54 | 53 | RemoveProperties="%(NBGV_CachingProjectReference.GlobalPropertiesToRemove)" |
55 | | - Targets="GetBuildVersion_Properties"> |
56 | | - <Output TaskParameter="TargetOutputs" ItemName="NBGV_PropertyItems" /> |
| 54 | + Targets="GetBuildVersion_Properties;GetBuildVersion_CloudBuildVersionVars"> |
| 55 | + <Output TaskParameter="TargetOutputs" ItemName="_NBGV_PropertiesAndVersionVars" /> |
57 | 56 | </MSBuild> |
58 | 57 |
|
59 | | - <!-- Also get other items. --> |
60 | | - <MSBuild Projects="@(NBGV_CachingProjectReference)" |
61 | | - Properties="%(NBGV_CachingProjectReference.Properties)" |
62 | | - RemoveProperties="%(NBGV_CachingProjectReference.GlobalPropertiesToRemove)" |
63 | | - Targets="GetBuildVersion_CloudBuildVersionVars"> |
64 | | - <Output TaskParameter="TargetOutputs" ItemName="CloudBuildVersionVars" /> |
65 | | - </MSBuild> |
| 58 | + <ItemGroup> |
| 59 | + <NBGV_PropertyItems Include="@(_NBGV_PropertiesAndVersionVars)" Condition="'%(MSBuildSourceTargetName)'=='GetBuildVersion_Properties'" /> |
| 60 | + <CloudBuildVersionVars Include="@(_NBGV_PropertiesAndVersionVars)" Condition="'%(MSBuildSourceTargetName)'=='GetBuildVersion_CloudBuildVersionVars'" /> |
| 61 | + </ItemGroup> |
66 | 62 | </Target> |
67 | 63 | </Project> |
0 commit comments