Skip to content

Commit

Permalink
Remove native AOT error when skipping native compilation (#46839)
Browse files Browse the repository at this point in the history
This disables the new error when NativeCompilationDuringPublish is
false. This is to enable a scenario where the ios build logic runs
Publish targets (and ILCompiler targets are imported) but doesn't run
ILC (so doesn't pass coreclr runtime packs to ILC, which this error
guards against).
  • Loading branch information
sbomer authored Feb 14, 2025
1 parent 2291d9f commit 2f1799b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ Copyright (c) .NET Foundation. All rights reserved.
<NETSdkError Condition="'$(PublishAot)' == 'true' and
'$(_IsPublishing)' != 'true' and
'$(PublishAotUsingRuntimePack)' == 'true' and
'$(NativeCompilationDuringPublish)' != 'false' and
'$(_TargetFrameworkVersionWithoutV)' >= '10.0'"
ResourceName="NativeCompilationRequiresPublishing" />

Expand Down

0 comments on commit 2f1799b

Please sign in to comment.