Skip to content

Commit 0f2546f

Browse files
Don't set PublishAot in SDK by default (#74048)
Co-authored-by: Sven Boemer <[email protected]>
1 parent 3d7d087 commit 0f2546f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/coreclr/nativeaot/BuildIntegration/Microsoft.DotNet.ILCompiler.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Copyright (c) .NET Foundation. All rights reserved.
1111
-->
1212
<Project>
1313
<PropertyGroup>
14-
<!-- Set the publishAot property to true if not set-->
15-
<PublishAot Condition="'$(PublishAot)' == ''">true</PublishAot>
14+
<!-- Set the publishAot property to true when imported from a package reference. -->
15+
<PublishAot Condition="'$(PublishAot)' == '' And '$(AotRuntimePackageLoadedViaSDK)' != 'true'">true</PublishAot>
1616
<!-- N.B. The ILCompilerTargetsPath is used as a sentinel to indicate a version of this file has already been imported. It will also be the path
1717
used to import the targets later in the SDK. -->
1818
<ILCompilerTargetsPath>$(MSBuildThisFileDirectory)Microsoft.DotNet.ILCompiler.SingleEntry.targets</ILCompilerTargetsPath>

0 commit comments

Comments
 (0)