Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 78b0e3a

Browse files
sbomergithub-actions
authored andcommittedFeb 14, 2025·
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)
Please sign in to comment.