|
| 1 | +<!-- |
| 2 | +*********************************************************************************************** |
| 3 | +Microsoft.NuGet.Build.Packaging.CrossTargeting.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) .NET Foundation. All rights reserved. |
| 10 | +*********************************************************************************************** |
| 11 | +--> |
| 12 | +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 13 | + |
| 14 | + <Target Name="GetNativeManifest" /> |
| 15 | + <Target Name="GetCopyToOutputDirectoryItems" /> |
| 16 | + |
| 17 | + <!-- |
| 18 | + ============================================================ |
| 19 | + GetTargetPathWithTargetPlatformMoniker |
| 20 | + NOTE: depends on Microsoft.Common.CrossTargeting.targets |
| 21 | +
|
| 22 | + When cross-targeting and the authoring project references a |
| 23 | + nugetized library, return all the determined target paths. |
| 24 | + ============================================================ |
| 25 | + --> |
| 26 | + <Target Name="GetTargetPathWithTargetPlatformMoniker" |
| 27 | + DependsOnTargets="_SetGetTargetPathWithTargetPlatformMonikerInnerTarget;DispatchToInnerBuilds" |
| 28 | + Returns="@(InnerOutput)"> |
| 29 | + <ItemGroup> |
| 30 | + <InnerOutput> |
| 31 | + <IsNuGetized>true</IsNuGetized> |
| 32 | + </InnerOutput> |
| 33 | + </ItemGroup> |
| 34 | + </Target> |
| 35 | + |
| 36 | + <Target Name="_SetGetTargetPathWithTargetPlatformMonikerInnerTarget"> |
| 37 | + <PropertyGroup> |
| 38 | + <InnerTargets>GetTargetPathWithTargetPlatformMoniker</InnerTargets> |
| 39 | + </PropertyGroup> |
| 40 | + </Target> |
| 41 | + |
| 42 | + <!-- |
| 43 | + ============================================================ |
| 44 | + GetPackageContents |
| 45 | + Cross-targeting version of GetPackageContents. |
| 46 | + NOTE: depends on Microsoft.Common.CrossTargeting.targets |
| 47 | + |
| 48 | + [OUT] |
| 49 | + @(InnerOutput) - The combined output items of the inner targets across |
| 50 | + all builds. |
| 51 | + ============================================================ |
| 52 | + --> |
| 53 | + <Target Name="GetPackageContents" DependsOnTargets="_SetGetPackageContentsInnerTarget;DispatchToInnerBuilds" Returns="@(InnerOutput)" /> |
| 54 | + |
| 55 | + <Target Name="_SetGetPackageContentsInnerTarget"> |
| 56 | + <PropertyGroup> |
| 57 | + <InnerTargets>GetPackageContents</InnerTargets> |
| 58 | + </PropertyGroup> |
| 59 | + </Target> |
| 60 | + |
| 61 | +</Project> |
0 commit comments