Skip to content

Commit d87a4af

Browse files
committed
use more precise apphost-detection for command entrypoint
1 parent c70bf75 commit d87a4af

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ Copyright (c) .NET Foundation. All rights reserved.
6767
<!-- Needs to be in a target so we don't need to worry about evaluation order with NativeBinary property -->
6868
<PropertyGroup Condition="'$(ToolEntryPoint)' == ''">
6969
<ToolEntryPoint>$(TargetFileName)</ToolEntryPoint>
70-
<!-- TODO: What property to use for single file (non AOT) or other modes? -->
71-
<ToolEntryPoint Condition=" '$(PublishAot)' == 'true' ">$([System.IO.Path]::GetFileName($(NativeBinary)))</ToolEntryPoint>
70+
<ToolEntryPoint Condition=" '$(UseAppHost)' == 'true' ">$(AssemblyName)$(_NativeExecutableExtension)</ToolEntryPoint>
7271
</PropertyGroup>
7372

7473
<PropertyGroup Condition="'@(ToolPackageRuntimeIdentifier)' != '' And '$(RuntimeIdentifier)' != ''">

0 commit comments

Comments
 (0)