@@ -32,6 +32,11 @@ Copyright (c) .NET Foundation. All rights reserved.
32
32
<PublishTrimmed Condition =" '$(RuntimeIdentifier)' == ''" >false</PublishTrimmed >
33
33
<PublishReadyToRun Condition =" '$(RuntimeIdentifier)' == ''" >false</PublishReadyToRun >
34
34
<PublishAot Condition =" '$(RuntimeIdentifier)' == ''" >false</PublishAot >
35
+
36
+ <!-- set up generation dependencies -->
37
+ <GenerateNuspecDependsOn Condition =" ('$(GeneratePackageOnBuild)' != 'true' and '$(NoBuild)' != 'true') and $(IsPublishable) == 'true' " >$(GenerateNuspecDependsOn);_PublishBuildAlternative</GenerateNuspecDependsOn >
38
+ <GenerateNuspecDependsOn Condition =" ('$(GeneratePackageOnBuild)' == 'true' or '$(NoBuild)' == 'true') and $(IsPublishable) == 'true' " >$(GenerateNuspecDependsOn);$(_PublishNoBuildAlternativeDependsOn)</GenerateNuspecDependsOn >
39
+ <GenerateNuspecDependsOn Condition =" '$(ToolPackageRuntimeIdentifiers)' != '' and '$(RuntimeIdentifier)' == '' " >$(GenerateNuspecDependsOn);_CreateRIDSpecificToolPackages</GenerateNuspecDependsOn >
35
40
</PropertyGroup >
36
41
<!--
37
42
@@ -59,10 +64,6 @@ Copyright (c) .NET Foundation. All rights reserved.
59
64
-->
60
65
<Target Name =" SetPackToolProperties"
61
66
BeforeTargets =" _GenerateRestoreProjectSpec;_GenerateToolsSettingsFileInputCache;_GenerateShimInputCache;_GetOutputItemsFromPack" >
62
- <PropertyGroup >
63
- <GenerateNuspecDependsOn Condition =" ('$(GeneratePackageOnBuild)' != 'true' and '$(NoBuild)' != 'true') and $(IsPublishable) == 'true' " >$(GenerateNuspecDependsOn);_PublishBuildAlternative</GenerateNuspecDependsOn >
64
- <GenerateNuspecDependsOn Condition =" ('$(GeneratePackageOnBuild)' == 'true' or '$(NoBuild)' == 'true') and $(IsPublishable) == 'true' " >$(GenerateNuspecDependsOn);$(_PublishNoBuildAlternativeDependsOn)</GenerateNuspecDependsOn >
65
- </PropertyGroup >
66
67
67
68
<!-- Needs to be in a target so we don't need to worry about evaluation order with NativeBinary property -->
68
69
<PropertyGroup Condition =" '$(ToolEntryPoint)' == ''" >
@@ -290,4 +291,22 @@ Copyright (c) .NET Foundation. All rights reserved.
290
291
</ItemGroup >
291
292
</Target >
292
293
294
+ <!-- orchestrator for making the N RID-specific tool packages -->
295
+ <Target Name =" _CreateRIDSpecificToolPackages" >
296
+ <PropertyGroup >
297
+ <_PackageRids >$(ToolPackageRuntimeIdentifiers)</_PackageRids >
298
+ <_PackageRids Condition =" '$(_PackageRids)' == ''" >$(RuntimeIdentifiers)</_PackageRids >
299
+ </PropertyGroup >
300
+
301
+ <ItemGroup >
302
+ <!-- Build the RID-specific packages.-->
303
+ <_rids Include =" $(_PackageRids)" />
304
+ <_RidSpecificToolPackageProject Include =" $(MSBuildProjectFullPath)" AdditionalProperties =" RuntimeIdentifier=%(_rids.Identity);" />
305
+ </ItemGroup >
306
+
307
+ <MSBuild BuildInParallel =" true" Projects =" @(_RidSpecificToolPackageProject)" Targets =" Pack" >
308
+ <Output TaskParameter =" TargetOutputs" ItemName =" _ToolPackageOutputs" />
309
+ </MSBuild >
310
+ </Target >
311
+
293
312
</Project >
0 commit comments