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.
3131 <PublishReadyToRun Condition =" '$(RuntimeIdentifier)' == ''" >false</PublishReadyToRun >
3232 <PublishAot Condition =" '$(RuntimeIdentifier)' == ''" >false</PublishAot >
3333 <!-- 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 >
3436 <RuntimeIdentifiers Condition =" '$(PackAsToolShimRuntimeIdentifiers)' != ''" >$(RuntimeIdentifiers);$(PackAsToolShimRuntimeIdentifiers)</RuntimeIdentifiers >
3537
3638 <!-- Tool implementation files are not included in the primary package when the tool has RID-specific packages. So only pack the tool implementation
3739 (and only depend on publish) if there are no RID-specific packages, or if the RuntimeIdentifier is set. -->
3840 <_ToolPackageShouldIncludeImplementation Condition =" '$(PackAsTool)' == 'true' And
3941 ('$(ToolPackageRuntimeIdentifiers)' == '' Or '$(RuntimeIdentifier)' != '')" >true</_ToolPackageShouldIncludeImplementation >
4042 <_ToolPackageShouldIncludeImplementation Condition =" '$(_ToolPackageShouldIncludeImplementation)' == ''" >false</_ToolPackageShouldIncludeImplementation >
41- <_HasRIDSpecificTools Condition =" '$(ToolPackageRuntimeIdentifiers)' != '' or '$(RuntimeIdentifiers)' != '' " >true</_HasRIDSpecificTools >
43+ <_HasRIDSpecificTools Condition =" '$(ToolPackageRuntimeIdentifiers)' != '' or ( '$(RuntimeIdentifiers)' != '' and $(_ToolRidsAreOnlyShims) == false ) " >true</_HasRIDSpecificTools >
4244 <_HasRIDSpecificTools Condition =" '$(_HasRIDSpecificTools)' == ''" >false</_HasRIDSpecificTools >
4345
4446 <!-- inner builds and non-RID-specific outer builds need publish content-->
You can’t perform that action at this time.
0 commit comments