File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/Tasks/Microsoft.NET.Build.Tasks/targets Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,16 @@ Copyright (c) .NET Foundation. All rights reserved.
31
31
<PublishReadyToRun Condition =" '$(RuntimeIdentifier)' == ''" >false</PublishReadyToRun >
32
32
<PublishAot Condition =" '$(RuntimeIdentifier)' == ''" >false</PublishAot >
33
33
<!-- If shims are included, we need to make sure we restore for those RIDs so the apphost shims are available during restore/publish -->
34
+ <_ToolRidsAreOnlyShims Condition =" '$(RuntimeIdentifiers)' == '' and $(PackAsToolShimRuntimeIdentifiers) != '' " >true</_ToolRidsAreOnlyShims >
35
+ <_ToolRidsAreOnlyShims >false</_ToolRidsAreOnlyShims >
34
36
<RuntimeIdentifiers Condition =" '$(PackAsToolShimRuntimeIdentifiers)' != ''" >$(RuntimeIdentifiers);$(PackAsToolShimRuntimeIdentifiers)</RuntimeIdentifiers >
35
37
36
38
<!-- Tool implementation files are not included in the primary package when the tool has RID-specific packages. So only pack the tool implementation
37
39
(and only depend on publish) if there are no RID-specific packages, or if the RuntimeIdentifier is set. -->
38
40
<_ToolPackageShouldIncludeImplementation Condition =" '$(PackAsTool)' == 'true' And
39
41
('$(ToolPackageRuntimeIdentifiers)' == '' Or '$(RuntimeIdentifier)' != '')" >true</_ToolPackageShouldIncludeImplementation >
40
42
<_ToolPackageShouldIncludeImplementation Condition =" '$(_ToolPackageShouldIncludeImplementation)' == ''" >false</_ToolPackageShouldIncludeImplementation >
41
- <_HasRIDSpecificTools Condition =" '$(ToolPackageRuntimeIdentifiers)' != '' or '$(RuntimeIdentifiers)' != '' " >true</_HasRIDSpecificTools >
43
+ <_HasRIDSpecificTools Condition =" '$(ToolPackageRuntimeIdentifiers)' != '' or ( '$(RuntimeIdentifiers)' != '' and $(_ToolRidsAreOnlyShims) == false ) " >true</_HasRIDSpecificTools >
42
44
<_HasRIDSpecificTools Condition =" '$(_HasRIDSpecificTools)' == ''" >false</_HasRIDSpecificTools >
43
45
44
46
<!-- inner builds and non-RID-specific outer builds need publish content-->
You can’t perform that action at this time.
0 commit comments