Added DotNetBuild=true target in NativeAotTestApp project - #68679
Open
ashutoshjadhav9 wants to merge 2 commits into
Open
Added DotNetBuild=true target in NativeAotTestApp project#68679ashutoshjadhav9 wants to merge 2 commits into
ashutoshjadhav9 wants to merge 2 commits into
Conversation
Contributor
|
Thanks for your PR, @ashutoshjadhav9. Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
javiercn
reviewed
Aug 21, 2026
| <Nullable>enable</Nullable> | ||
| <ImplicitUsings>enable</ImplicitUsings> | ||
| <UseAspNetCoreSharedRuntime>false</UseAspNetCoreSharedRuntime> | ||
| <RuntimeIdentifier Condition="'$(DotNetBuild)' == 'true'">$(TargetRuntimeIdentifier)</RuntimeIdentifier> |
Member
There was a problem hiding this comment.
Please scope this to the unsupported rid
Member
There was a problem hiding this comment.
This pattern is used in many places without scoping:
Can you help us understand why scoping here is required?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The Asp.Net Core build fails on linux-ppc64le with NU1101 errors for
Microsoft.NETCore.App.Runtime.linux-ppc64leandMicrosoft.NETCore.App.Host.linux-ppc64lein projectsrc/Components/Testing/testassets/NativeAotTestApp/NativeAotTestApp.csproj.The issue occurs when building Asp.Net Core on linux-ppc64le with .NET SDK 11.0.100-rc.1.26413.103As Native AOT is not supported on Power Mono Runtime, we are using
/p:PublishAot=falseand/p:EnableAotAnalyzer=falseproperties with the build command. These properties should skip the Native AOT related build steps, but the project is still being built and fails during the build.Error as below
If we add
$(DotNetBuild) == 'true'to the project file, the build is successful.Similar issue: - #66383
CC @omajid @tmds