Skip to content

Commit

Permalink
Merge pull request #2650 from unoplatform/dev/sb/cleanup
Browse files Browse the repository at this point in the history
chore: clean up changes from pr 2638
  • Loading branch information
kazo0 authored Jan 2, 2025
2 parents d8020bb + ae103be commit 5f3c45f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
1 change: 0 additions & 1 deletion samples/MauiEmbedding/MauiEmbedding/MauiEmbedding.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<Import Project="..\..\..\src\tfms-ui-maui.props" />

<PropertyGroup>
<TargetFrameworks>net8.0-windows10.0.19041</TargetFrameworks>
<OutputType>Exe</OutputType>
<UnoSingleProject>true</UnoSingleProject>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Expand Down
19 changes: 19 additions & 0 deletions src/Uno.Extensions.Maui.UI/build/Package.targets
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,24 @@
</Task>
</UsingTask>

<!-- Workaround to avoid including Uno.Toolkit.UI XBFs in the PRI file -->
<Target Name="AdjustGetPackagingOutput1" AfterTargets="GetMrtPackagingOutputs"
Condition="$(UsingUnoSdk) != 'true'">
<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"
Condition="$(UsingUnoSdk) != 'true'">
<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>

0 comments on commit 5f3c45f

Please sign in to comment.