Skip to content

Commit

Permalink
prep for winui nuget update, removing transitive winrt.runtime (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
Scottj1s authored May 13, 2020
1 parent e23f6e9 commit 5189a4c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions WinUI/WinUIDesktopSample/WinUIDesktopSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@
</PackageReference>
</ItemGroup>

<!--
In additon to excluding the WinUI interop assembly above, also need to exclude
its transitive Microsoft.Windows.CsWinRT Nuget's winrt.runtime.dll assembly.
But PackageReference metadata doesn't appear to support that, so removing it here.
-->
<Target Name="RemoveTransitivePackageAssets" AfterTargets="ResolvePackageAssets">
<ItemGroup>
<RuntimeCopyLocalItems Remove="@(RuntimeCopyLocalItems)" Condition="'%(RuntimeCopyLocalItems.NugetPackageId)' != '' And $([System.String]::Copy(%(RuntimeCopyLocalItems.NugetPackageId)).Contains('Microsoft.Windows.CsWinRT'))" />
</ItemGroup>
</Target>

<ItemGroup>
<ProjectReference Include="..\..\WinRT.Runtime\WinRT.Runtime.csproj" />
<ProjectReference Include="..\WinUIProjection\WinUIProjection.csproj" />
Expand Down

0 comments on commit 5189a4c

Please sign in to comment.