Skip to content

Commit 89b95d4

Browse files
committed
some more doc comments
1 parent d3332f9 commit 89b95d4

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.PackTool.targets

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,21 @@ Copyright (c) .NET Foundation. All rights reserved.
3131
<PublishReadyToRun Condition="'$(RuntimeIdentifier)' == ''">false</PublishReadyToRun>
3232
<PublishAot Condition="'$(RuntimeIdentifier)' == ''">false</PublishAot>
3333

34-
<!-- set up generation dependencies -->
3534
<!-- Tool implementation files are not included in the primary package when the tool has RID-specific packages. So only pack the tool implementation
3635
(and only depend on publish) if there are no RID-specific packages, or if the RuntimeIdentifier is set. -->
3736
<_ToolPackageShouldIncludeImplementation Condition=" '$(PackAsTool)' == 'true' And
3837
('$(ToolPackageRuntimeIdentifiers)' == '' Or '$(RuntimeIdentifier)' != '')">true</_ToolPackageShouldIncludeImplementation>
3938
<_ToolPackageShouldIncludeImplementation Condition="'$(_ToolPackageShouldIncludeImplementation)' == ''">false</_ToolPackageShouldIncludeImplementation>
40-
<!-- inner builds need publish content-->
39+
<_HasRIDSpecificTools Condition=" '$(ToolPackageRuntimeIdentifiers)' != '' or '$(RuntimeIdentifiers)' != '' ">true</_HasRIDSpecificTools>
40+
<_HasRIDSpecificTools Condition="'$(_HasRIDSpecificTools)' == ''">false</_HasRIDSpecificTools>
41+
42+
<!-- inner builds and non-RID-specific outer builds need publish content-->
4143
<_PackToolPublishDependency Condition=" '$(_ToolPackageShouldIncludeImplementation)' != '' and '$(GeneratePackageOnBuild)' != 'true' and $(IsPublishable) == 'true' ">Publish</_PackToolPublishDependency>
42-
<GenerateNuspecDependsOn Condition=" '$(ToolPackageRuntimeIdentifiers)' != '' and '$(RuntimeIdentifier)' == '' and '$(PublishAot)' != 'true' ">$(GenerateNuspecDependsOn);_CreateRIDSpecificToolPackages</GenerateNuspecDependsOn>
44+
45+
<!-- Trigger RID-specific inner builds if RID-specific mode is enabled-->
46+
<GenerateNuspecDependsOn Condition=" '$(_HasRIDSpecificTools)' == 'true' and '$(PublishAot)' != 'true' ">$(GenerateNuspecDependsOn);_CreateRIDSpecificToolPackages</GenerateNuspecDependsOn>
47+
48+
<!-- finally set up the entrypoint for all tool-content regardless of tool type-->
4349
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);PackTool</TargetsForTfmSpecificContentInPackage>
4450
</PropertyGroup>
4551
<!--

0 commit comments

Comments
 (0)