|
295 | 295 | important reasons), that doesn't work for us. |
296 | 296 | --> |
297 | 297 | <PropertyGroup> |
298 | | - <_GenerateProjectPriFileDependsOn>OpenConsoleLiftDesktopBridgePriFiles;$(_GenerateProjectPriFileDependsOn)</_GenerateProjectPriFileDependsOn> |
| 298 | + <!-- Only for MSBuild versions < 16.3.0 --> |
| 299 | + <_GenerateProjectPriFileDependsOn Condition="$(MSBuildVersion) < '16.3.0'">OpenConsoleLiftDesktopBridgePriFiles;$(_GenerateProjectPriFileDependsOn)</_GenerateProjectPriFileDependsOn> |
299 | 300 | </PropertyGroup> |
300 | 301 | <Target Name="OpenConsoleLiftDesktopBridgePriFiles" DependsOnTargets="_ConvertItems"> |
301 | 302 | <ItemGroup> |
|
305 | 306 | </ItemGroup> |
306 | 307 | </Target> |
307 | 308 |
|
| 309 | + <!-- VS 16.3.0 added a rule to the WAP packaging project that removes all non-WAP payload, which we were relying on to |
| 310 | + roll up our subproject resources. We have to suppress that rule but keep part of its logic, because that rule is |
| 311 | + where the AppxPackagePayload items are created. --> |
| 312 | + <PropertyGroup> |
| 313 | + <!-- Only for MSBuild versions <= 16.4.0 --> |
| 314 | + <!-- TODO: Change this to hard less than once the 16.4.0 previews fix the bug. --> |
| 315 | + <WapProjBeforeGenerateAppxManifestDependsOn |
| 316 | + Condition="$(MSBuildVersion) <= '16.4.0'"> |
| 317 | + $([MSBuild]::Unescape('$(WapProjBeforeGenerateAppxManifestDependsOn.Replace('_RemoveAllNonWapUWPItems', '_OpenConsoleRemoveAllNonWapUWPItems'))')) |
| 318 | + </WapProjBeforeGenerateAppxManifestDependsOn> |
| 319 | + </PropertyGroup> |
| 320 | + <Target Name="_OpenConsoleRemoveAllNonWapUWPItems"> |
| 321 | + <ItemGroup> |
| 322 | + <AppxPackagePayload Include="@(WapProjPackageFile)" /> |
| 323 | + <AppxUploadPackagePayload Include="@(UploadWapProjPackageFile)" /> |
| 324 | + <!-- 16.3.0 - remove non-resources.pri PRI files since we just forced them back in. --> |
| 325 | + <AppxPackagePayload Remove="@(AppxPackagePayload)" Condition="'%(Extension)' == '.pri' and '%(Filename)' != 'resources'" /> |
| 326 | + <AppxUploadPackagePayload Remove="@(AppxUploadPackagePayload)" Condition="'%(Extension)' == '.pri' and '%(Filename)' != 'resources'" /> |
| 327 | + </ItemGroup> |
| 328 | + </Target> |
| 329 | + |
308 | 330 | </Project> |
0 commit comments