Skip to content

Commit da5fd52

Browse files
authored
[release/10.0.1xx-preview1] Remove native AOT error when skipping native compilation (#46864)
2 parents 854cc61 + 78b0e3a commit da5fd52

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)