Skip to content

Commit 897c950

Browse files
committed
only do tool-packaging things during publish if the published project is a tool
1 parent 9a15035 commit 897c950

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ Copyright (c) .NET Foundation. All rights reserved.
12811281
-->
12821282
<UsingTask TaskName="Microsoft.NET.Build.Tasks.GetEmbeddedApphostPaths"
12831283
AssemblyFile="$(MicrosoftNETBuildTasksAssembly)" />
1284-
<Target Name="ComputeEmbeddedApphostPaths">
1284+
<Target Name="ComputeEmbeddedApphostPaths" Condition="'$(PackAsTool)' == 'true'">
12851285

12861286
<ItemGroup>
12871287
<_PackAsToolShimRuntimeIdentifiers Condition="@(_PackAsToolShimRuntimeIdentifiers) ==''" Include="$(PackAsToolShimRuntimeIdentifiers)"/>

0 commit comments

Comments
 (0)