Skip to content

Commit

Permalink
Add target to remove binding redirect (dotnet/corefx#35828)
Browse files Browse the repository at this point in the history
* Add target to remove binding redirect

* Update name of target to not collide with WindowsRuntime target


Commit migrated from dotnet/corefx@ca106c2
  • Loading branch information
jeffschwMSFT authored and stephentoub committed Mar 8, 2019
1 parent 2b91fd2 commit 9b877cb
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,13 @@
</ItemGroup>
</When>
</Choose>
<!-- when this package is referenced as a nuget reference the binding redirect is still present, add a target to remove it -->
<Target Name="_RemoveWindowsRuntimeUIXamlSuggestedRedirect"
BeforeTargets="GenerateBindingRedirects"
DependsOnTargets="ResolveAssemblyReferences"
Condition="'$(DoNotReferenceWinRT)' != 'true'">
<ItemGroup>
<SuggestedBindingRedirects Remove="System.Runtime.WindowsRuntime.UI.Xaml, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</ItemGroup>
</Target>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,13 @@
</ItemGroup>
</When>
</Choose>
<!-- when this package is referenced as a nuget reference the binding redirect is still present, add a target to remove it -->
<Target Name="_RemoveWindowsRuntimeUIXamlSuggestedRedirect"
BeforeTargets="GenerateBindingRedirects"
DependsOnTargets="ResolveAssemblyReferences"
Condition="'$(DoNotReferenceWinRT)' != 'true'">
<ItemGroup>
<SuggestedBindingRedirects Remove="System.Runtime.WindowsRuntime.UI.Xaml, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</ItemGroup>
</Target>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,13 @@
</ItemGroup>
</When>
</Choose>
<!-- when this package is referenced as a nuget reference the binding redirect is still present, add a target to remove it -->
<Target Name="_RemoveWindowsRuntimeSuggestedRedirect"
BeforeTargets="GenerateBindingRedirects"
DependsOnTargets="ResolveAssemblyReferences"
Condition="'$(DoNotReferenceWinRT)' != 'true'">
<ItemGroup>
<SuggestedBindingRedirects Remove="System.Runtime.WindowsRuntime, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</ItemGroup>
</Target>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,13 @@
</ItemGroup>
</When>
</Choose>
<!-- when this package is referenced as a nuget reference the binding redirect is still present, add a target to remove it -->
<Target Name="_RemoveWindowsRuntimeSuggestedRedirect"
BeforeTargets="GenerateBindingRedirects"
DependsOnTargets="ResolveAssemblyReferences"
Condition="'$(DoNotReferenceWinRT)' != 'true'">
<ItemGroup>
<SuggestedBindingRedirects Remove="System.Runtime.WindowsRuntime, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</ItemGroup>
</Target>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,13 @@
</ItemGroup>
</When>
</Choose>
<!-- when this package is referenced as a nuget reference the binding redirect is still present, add a target to remove it -->
<Target Name="_RemoveWindowsRuntimeSuggestedRedirect"
BeforeTargets="GenerateBindingRedirects"
DependsOnTargets="ResolveAssemblyReferences"
Condition="'$(DoNotReferenceWinRT)' != 'true'">
<ItemGroup>
<SuggestedBindingRedirects Remove="System.Runtime.WindowsRuntime, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</ItemGroup>
</Target>
</Project>

0 comments on commit 9b877cb

Please sign in to comment.