|
1196 | 1196 | </PropertyGroup> |
1197 | 1197 |
|
1198 | 1198 | <MSBuild |
1199 | | - Projects="@(ProjectReferenceWithConfiguration)" |
| 1199 | + Projects="@(_MSBuildProjectReferenceExistent)" |
1200 | 1200 | Targets="GetMrtPackagingOutputs" |
1201 | 1201 | BuildInParallel="$(BuildInParallel)" |
1202 | | - Properties="%(ProjectReferenceWithConfiguration.SetConfiguration); %(ProjectReferenceWithConfiguration.SetPlatform)" |
1203 | | - Condition="'@(ProjectReferenceWithConfiguration)' != '' |
1204 | | - and '%(ProjectReferenceWithConfiguration.BuildReference)' == 'true' |
1205 | | - and '%(ProjectReferenceWithConfiguration.ReferenceOutputAssembly)' == 'true'" |
| 1202 | + Properties="%(_MSBuildProjectReferenceExistent.SetConfiguration); %(_MSBuildProjectReferenceExistent.SetPlatform); %(_MSBuildProjectReferenceExistent.SetTargetFramework)" |
| 1203 | + Condition="'@(_MSBuildProjectReferenceExistent)' != '' |
| 1204 | + and '%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true' |
| 1205 | + and '%(_MSBuildProjectReferenceExistent.ReferenceOutputAssembly)' == 'true'" |
1206 | 1206 | SkipNonexistentTargets="true" |
1207 | | - ContinueOnError="$(_ContinueOnError)"> |
| 1207 | + ContinueOnError="$(_ContinueOnError)" |
| 1208 | + RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)$(_GlobalPropertiesToRemoveFromProjectReferences)"> |
1208 | 1209 | <Output TaskParameter="TargetOutputs" ItemName="_PackagingOutputsFromOtherMrtCoreProjects"/> |
1209 | 1210 | </MSBuild> |
1210 | 1211 |
|
1211 | 1212 | <!-- The referenced project may not be using MRTCore. In that case, GetMrtPackagingOutputs won't be defined. However, if the |
1212 | 1213 | project is of type UWP, it'll have GetPackagingOutputs defined. So, try calling GetPackagingOutputs. If it does not exist, |
1213 | 1214 | we simply no-op - see the SkipNonexistentTargets parameter below. --> |
1214 | 1215 | <MSBuild |
1215 | | - Projects="@(ProjectReferenceWithConfiguration)" |
| 1216 | + Projects="@(_MSBuildProjectReferenceExistent)" |
1216 | 1217 | Targets="GetPackagingOutputs" |
1217 | 1218 | BuildInParallel="$(BuildInParallel)" |
1218 | | - Properties="%(ProjectReferenceWithConfiguration.SetConfiguration); %(ProjectReferenceWithConfiguration.SetPlatform)" |
1219 | | - Condition="'@(ProjectReferenceWithConfiguration)' != '' |
1220 | | - and '%(ProjectReferenceWithConfiguration.BuildReference)' == 'true' |
1221 | | - and '%(ProjectReferenceWithConfiguration.ReferenceOutputAssembly)' == 'true'" |
| 1219 | + Properties="%(_MSBuildProjectReferenceExistent.SetConfiguration); %(_MSBuildProjectReferenceExistent.SetPlatform); %(_MSBuildProjectReferenceExistent.SetTargetFramework)" |
| 1220 | + Condition="'@(_MSBuildProjectReferenceExistent)' != '' |
| 1221 | + and '%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true' |
| 1222 | + and '%(_MSBuildProjectReferenceExistent.ReferenceOutputAssembly)' == 'true'" |
1222 | 1223 | SkipNonexistentTargets="true" |
1223 | | - ContinueOnError="$(_ContinueOnError)"> |
| 1224 | + ContinueOnError="$(_ContinueOnError)" |
| 1225 | + RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)$(_GlobalPropertiesToRemoveFromProjectReferences)"> |
1224 | 1226 | <Output TaskParameter="TargetOutputs" ItemName="_PackagingOutputsFromOtherUwpProjects"/> |
1225 | 1227 | </MSBuild> |
1226 | 1228 |
|
|
1306 | 1308 | Projects="@(OptionalProjectBuildReferences)" |
1307 | 1309 | Targets="GetOptionalProjectOutputs" |
1308 | 1310 | BuildInParallel="$(BuildInParallel)" |
1309 | | - Properties="%(OptionalProjectBuildReferences.SetConfiguration); %(OptionalProjectBuildReferences.SetPlatform)" |
1310 | | - ContinueOnError="$(_ContinueOnError)"> |
| 1311 | + Properties="%(OptionalProjectBuildReferences.SetConfiguration); %(OptionalProjectBuildReferences.SetPlatform); %(OptionalProjectBuildReferences.SetTargetFramework)" |
| 1312 | + ContinueOnError="$(_ContinueOnError)" |
| 1313 | + RemoveProperties="%(OptionalProjectBuildReferences.GlobalPropertiesToRemove)$(_GlobalPropertiesToRemoveFromProjectReferences)"> |
1311 | 1314 | <Output TaskParameter="TargetOutputs" ItemName="_OptionalProjectOutputsFromOtherProjects"/> |
1312 | 1315 | </MSBuild> |
1313 | 1316 |
|
|
0 commit comments