Skip to content

Commit

Permalink
Only include DesignTimeFacadeAssemblies which are not in ReferencePath (
Browse files Browse the repository at this point in the history
#1520)

* Only include DesignTimeFacadeAssemblies which are not in ReferencePath

Resolves #1345
  • Loading branch information
cdmihai authored and AndyGerlicher committed Jan 10, 2017
1 parent e8b8f2c commit 40cd4d0
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/XMakeTasks/Microsoft.NETFramework.CurrentVersion.targets
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,18 @@ Copyright (C) Microsoft Corporation. All rights reserved.

<ItemGroup Condition="'$(_HasReferenceToSystemRuntime)' == 'true'">
<_DesignTimeFacadeAssemblies Include="%(DesignTimeFacadeDirectories.Identity)*.dll"/>
<!-- If the user has manually referenced these assemblies, remove them so we don't end up with duplicates -->
<ReferencePath Remove="@(_DesignTimeFacadeAssemblies)"/>
<ReferencePath Include="%(_DesignTimeFacadeAssemblies.Identity)">

<_DesignTimeFacadeAssemblies_Names Include="@(_DesignTimeFacadeAssemblies->'%(FileName)')">
<OriginalIdentity>%(_DesignTimeFacadeAssemblies.Identity)</OriginalIdentity>
</_DesignTimeFacadeAssemblies_Names>

<_ReferencePath_Names Include="@(ReferencePath->'%(FileName)')">
<OriginalIdentity>%(ReferencePath.Identity)</OriginalIdentity>
</_ReferencePath_Names>

<_DesignTimeFacadeAssemblies_Names Remove="@(_ReferencePath_Names)"/>

<ReferencePath Include="@(_DesignTimeFacadeAssemblies_Names->'%(OriginalIdentity)')">
<WinMDFile>false</WinMDFile>
<CopyLocal>false</CopyLocal>
<ResolvedFrom>ImplicitlyExpandDesignTimeFacades</ResolvedFrom>
Expand Down

0 comments on commit 40cd4d0

Please sign in to comment.