Skip to content

Commit 2f1799b

Browse files
authored
Remove native AOT error when skipping native compilation (#46839)
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).
1 parent 2291d9f commit 2f1799b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ Copyright (c) .NET Foundation. All rights reserved.
231231
<NETSdkError Condition="'$(PublishAot)' == 'true' and
232232
'$(_IsPublishing)' != 'true' and
233233
'$(PublishAotUsingRuntimePack)' == 'true' and
234+
'$(NativeCompilationDuringPublish)' != 'false' and
234235
'$(_TargetFrameworkVersionWithoutV)' >= '10.0'"
235236
ResourceName="NativeCompilationRequiresPublishing" />
236237

0 commit comments

Comments
 (0)