| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 3 |
<PropertyGroup> |
| 4 |
<!-- Desktop has cycles and dangling refs --> |
| 5 |
<!-- ShouldVerifyClosure>true</ShouldVerifyClosure --> |
| 6 |
<ShouldVerifyTypes>true</ShouldVerifyTypes> |
| 7 |
</PropertyGroup> |
| 8 |
|
| 9 |
<ItemGroup> |
| 10 |
<!-- these are part of the targeting pack but not actual assemblies --> |
| 11 |
<ExcludeReference Include="System.EnterpriseServices.Thunk;System.EnterpriseServices.Wrapper" /> |
| 12 |
|
| 13 |
<!-- these are part of the targeting pack but contain many duplicate types --> |
| 14 |
<ExcludeReference Include="PresentationFramework.Aero;PresentationFramework.Aero2;PresentationFramework.AeroLite;PresentationFramework.Classic;PresentationFramework.Luna;PresentationFramework.Royale" /> |
| 15 |
|
| 16 |
<!-- these duplicate types exist in the targeting pack --> |
| 17 |
<IgnoredTypes Include="XamlGeneratedNamespace.GeneratedInternalTypeHelper" /> |
| 18 |
<IgnoredTypes Include="System.Deployment.Internal.CodeSigning.RSAPKCS1SHA256SignatureDescription" /> |
| 19 |
<IgnoredTypes Include="System.ServiceModel.Channels.HttpRequestMessageExtensionMethods" /> |
| 20 |
</ItemGroup> |
| 21 |
|
| 22 |
<!-- this target must run before ResolvePackageDependenciesForBuild so |
| 23 |
that the SDK targets de-dup the References it adds against those |
| 24 |
that come from packages --> |
| 25 |
<Target Name="ReferenceEntireFramework" |
| 26 |
BeforeTargets="ResolvePackageDependenciesForBuild" |
| 27 |
DependsOnTargets="GetReferenceAssemblyPaths" |
| 28 |
Condition="'$(TargetFrameworkDirectory)' != ''"> |
| 29 |
<ItemGroup> |
| 30 |
<!-- TargetFrameworkDirectory may contain many paths --> |
| 31 |
<_frameworkDirectoriesToInclude Include="$(TargetFrameworkDirectory)" /> |
| 32 |
|
| 33 |
<_allFrameworkReferences Include="%(_frameworkDirectoriesToInclude.Identity)\*.dll" /> |
| 34 |
<Reference Include="@(_allFrameworkReferences->'%(FileName)')" Exclude="@(ExcludeReference)" /> |
| 35 |
</ItemGroup> |
| 36 |
</Target> |
| 37 |
</Project> |