-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2837 from PrismLibrary/winappsdk-workaround
add winappsdk workaround targets
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<Project> | ||
<!-- Workaround to avoid including Uno.Toolkit.UI XBFs in the PRI file --> | ||
<Target Name="AdjustGetPackagingOutput1" AfterTargets="GetMrtPackagingOutputs"> | ||
<Message Importance="high" Text="Applying NuGet packaging workaround for dependent PRI files exclusion" /> | ||
<ItemGroup> | ||
<_OtherPriFiles Include="@(PackagingOutputs)" Condition="'%(Extension)' == '.pri' and ('%(PackagingOutputs.ReferenceSourceTarget)' == 'ProjectReference' or '%(PackagingOutputs.NugetSourceType)'=='Package')" /> | ||
<PackagingOutputs Remove="@(_OtherPriFiles)" /> | ||
</ItemGroup> | ||
</Target> | ||
|
||
<Target Name="AdjustGetPackagingOutput2" BeforeTargets="AddPriPayloadFilesToCopyToOutputDirectoryItems"> | ||
<Message Importance="high" Text="Applying NuGet packaging workaround for dependent PRI files exclusion" /> | ||
<ItemGroup> | ||
<_OtherPriFiles1 Include="@(_ReferenceRelatedPaths)" Condition="'%(Extension)' == '.pri' and ('%(_ReferenceRelatedPaths.ReferenceSourceTarget)' == 'ProjectReference' or '%(_ReferenceRelatedPaths.NugetSourceType)'=='Package')" /> | ||
<_ReferenceRelatedPaths Remove="@(_OtherPriFiles1)" /> | ||
|
||
<_OtherPriFiles2 Include="@(ReferenceCopyLocalPaths)" Condition="'%(Extension)' == '.pri' and ('%(ReferenceCopyLocalPaths.ReferenceSourceTarget)' == 'ProjectReference' or '%(ReferenceCopyLocalPaths.NugetSourceType)'=='Package')" /> | ||
<ReferenceCopyLocalPaths Remove="@(_OtherPriFiles2)" /> | ||
</ItemGroup> | ||
</Target> | ||
</Project> |
7e97462
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dansiegel @jeromelaban Merge pull request #2837 crashes the WinUi3 app (9.0.119-pre) with the following error. Reverting to 9.078-pre works as expected