Skip to content

Commit ceede7f

Browse files
authored
Use the NativeBinary property instead of reconstructing the path in NativeAOT target (#117294)
Use the NativeBinary property instead of reconstructing the path.
1 parent b1a2e43 commit ceede7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Publish.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
<Target Name="CopyNativeBinary" AfterTargets="Publish">
9090
<!-- replace apphost with binary we generated during native compilation -->
9191
<Delete Files="$(PublishDir)\$(TargetName)$(NativeBinaryExt)" />
92-
<Copy SourceFiles="$(NativeOutputPath)$(TargetName)$(NativeBinaryExt)" DestinationFolder="$(PublishDir)" />
92+
<Copy SourceFiles="$(NativeBinary)" DestinationFolder="$(PublishDir)" />
9393
</Target>
9494

9595
<Target Name="_CopyAotSymbols" AfterTargets="Publish"

0 commit comments

Comments
 (0)