File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/coreclr/nativeaot/BuildIntegration Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments