Skip to content

Commit 9a15035

Browse files
committed
Don't have Pack call PackTool unless the package is a tool
1 parent 6dc57ca commit 9a15035

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ Copyright (c) .NET Foundation. All rights reserved.
1212
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
1313

1414
<PropertyGroup>
15-
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);PackTool</TargetsForTfmSpecificContentInPackage>
1615
</PropertyGroup>
1716
</Project>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Copyright (c) .NET Foundation. All rights reserved.
3434
<!-- set up generation dependencies -->
3535
<!-- inner builds need publish content-->
3636
<_PackToolPublishDependency Condition=" '$(RuntimeIdentifier)' != '' and '$(GeneratePackageOnBuild)' != 'true' and $(IsPublishable) == 'true' ">Publish</_PackToolPublishDependency>
37+
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);PackTool</TargetsForTfmSpecificContentInPackage>
3738
<!-- outer build needs to generate RID-specific tool packages, but only if we're not AOT-ing (because we can't do xplat AOT). -->
3839
<GenerateNuspecDependsOn Condition=" '$(ToolPackageRuntimeIdentifiers)' != '' and '$(RuntimeIdentifier)' == '' and '$(PublishAot)' != 'true' ">$(GenerateNuspecDependsOn);_CreateRIDSpecificToolPackages</GenerateNuspecDependsOn>
3940
</PropertyGroup>

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ Copyright (c) .NET Foundation. All rights reserved.
172172

173173
<!--
174174
Extensibility point for users to import build logic after all of the .NET SDKs .props are imported but before the project's contents are evaluated.
175-
This can be useful for overriding default globs or properties that the SDK sets.
175+
This can be useful for overriding default globs or properties that the SDK sets.
176176
-->
177177
<Import Project="$(AfterMicrosoftNetSdkProps)" Condition="$(AfterMicrosoftNetSdkProps) != ''" />
178178

0 commit comments

Comments
 (0)