|
| 1 | +<!-- |
| 2 | +*********************************************************************************************** |
| 3 | +Microsoft.Windows.UI.Xaml.Common.targets |
| 4 | +
|
| 5 | +WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have |
| 6 | + created a backup copy. Incorrect changes to this file will make it |
| 7 | + impossible to load or build your projects from the command-line or the IDE. |
| 8 | +
|
| 9 | +Copyright (C) Microsoft Corporation. All rights reserved. |
| 10 | +*********************************************************************************************** |
| 11 | +--> |
| 12 | + |
| 13 | +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + <!-- |
| 18 | + ============================================================ |
| 19 | + Properties and Targets Common to Managed .NETCore projects |
| 20 | + ============================================================ |
| 21 | + --> |
| 22 | + |
| 23 | + <!-- |
| 24 | + The ImplicitlyExpandTargetFramework target will expand all |
| 25 | + of the dll reference assemblies in the TargetFrameworkDirectory |
| 26 | + for the project and place the items into the ReferencePath itemgroup |
| 27 | + which contains resolved items. |
| 28 | + --> |
| 29 | + <PropertyGroup> |
| 30 | + <ResolveReferencesDependsOn> |
| 31 | + $(ResolveReferencesDependsOn); |
| 32 | + ImplicitlyExpandTargetFramework; |
| 33 | + ImplicitlyExpandTargetPlatform |
| 34 | + </ResolveReferencesDependsOn> |
| 35 | + |
| 36 | + <ImplicitlyExpandTargetFrameworkDependsOn> |
| 37 | + $(ImplicitlyExpandTargetFrameworkDependsOn); |
| 38 | + GetReferenceAssemblyPaths |
| 39 | + </ImplicitlyExpandTargetFrameworkDependsOn> |
| 40 | + </PropertyGroup> |
| 41 | + |
| 42 | + <Target Name="ImplicitlyExpandTargetFramework" |
| 43 | + Condition="'$(ImplicitlyExpandTargetFramework)' == 'true'" |
| 44 | + DependsOnTargets="$(ImplicitlyExpandTargetFrameworkDependsOn)" |
| 45 | + > |
| 46 | + <ItemGroup> |
| 47 | + <ReferenceAssemblyPaths Include="$(_TargetFrameworkDirectories)"/> |
| 48 | + <ReferencePath Include="%(ReferenceAssemblyPaths.Identity)*.dll"> |
| 49 | + <WinMDFile>false</WinMDFile> |
| 50 | + <CopyLocal>false</CopyLocal> |
| 51 | + <ReferenceGroupingDisplayName>$(TargetFrameworkMonikerDisplayName)</ReferenceGroupingDisplayName> |
| 52 | + <ReferenceGrouping>$(TargetFrameworkMoniker)</ReferenceGrouping> |
| 53 | + <ResolvedFrom>ImplicitlyExpandTargetFramework</ResolvedFrom> |
| 54 | + <IsSystemReference>True</IsSystemReference> |
| 55 | + </ReferencePath> |
| 56 | + </ItemGroup> |
| 57 | + |
| 58 | + <Message Importance="Low" Text="TargetMonikerDisplayName: $(TargetFrameworkMonikerDisplayName) ReferenceAssemblyPaths: @(ReferenceAssemblyPaths)"/> |
| 59 | + |
| 60 | + <Message Importance="Low" Text="Including @(ReferencePath)" |
| 61 | + Condition="'%(ReferencePath.ResolvedFrom)' == 'ImplicitlyExpandTargetFramework'"/> |
| 62 | + |
| 63 | + <ItemGroup> |
| 64 | + <_ResolveAssemblyReferenceResolvedFiles Include="@(ReferencePath)" |
| 65 | + Condition="'%(ReferencePath.ResolvedFrom)' == 'ImplicitlyExpandTargetFramework'"/> |
| 66 | + </ItemGroup> |
| 67 | + </Target> |
| 68 | + |
| 69 | + <!-- |
| 70 | + The ImplicitlyExpandTargetPlatform target will expand all |
| 71 | + of the winmd files in the windowsSDK and add them the the |
| 72 | + ReferencePath item which is the itemgroup which contains |
| 73 | + resolved items. |
| 74 | + --> |
| 75 | + <Target Name="ImplicitlyExpandTargetPlatform" |
| 76 | + Condition="'$(ImplicitlyExpandTargetPlatform)' == 'true'" |
| 77 | + > |
| 78 | + |
| 79 | + <Message Importance="Low" Text="Including @(ReferencePath)" |
| 80 | + Condition="'%(ReferencePath.ResolvedFrom)' == 'ImplicitlyExpandTargetPlatform'"/> |
| 81 | + |
| 82 | + <ItemGroup> |
| 83 | + <_ResolveAssemblyReferenceResolvedFiles Include="@(ReferencePath)" |
| 84 | + Condition="'%(ReferencePath.ResolvedFrom)' == 'ImplicitlyExpandTargetPlatform'"/> |
| 85 | + </ItemGroup> |
| 86 | + </Target> |
| 87 | + |
| 88 | +</Project> |
0 commit comments