Skip to content

Commit 78b0e3a

Browse files
sbomergithub-actions
authored andcommitted
Remove native AOT error when skipping native compilation
1 parent 854cc61 commit 78b0e3a

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)