Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@
<FeatureSharedLowLevelLock>true</FeatureSharedLowLevelLock>
</PropertyGroup>

<!-- Enable runtime async for Native AOT -->
<PropertyGroup>
<Features>$(Features);runtime-async=on</Features>
<!-- Suppress warnings for using methods that require opting into preview features (AsyncHelpers.Await calls) -->
<NoWarn>$(NoWarn);CA2252</NoWarn>
Copy link
Member

@VSadov VSadov Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to suppress <NoWarn>$(NoWarn);SYSLIB5007</NoWarn> in #119432 as well. Possibly just a different way to suppress the same build errors?

I wonder what is the scenario when we see AsyncHelpers.Await marked as preview features?
I think they are no longer marked as experimental.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My theory was that we were building something against net10, perhaps temporarily for some build/codeflow related reasons.

But maybe the reason is something else.

I did not look deeply, just disabled the warnings to get them out of the way, but I kind of wonder why we need to do this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this because we mark AsyncHelpers as RequiresPreviewFeatures?

[RequiresPreviewFeatures]
public static T Await<T>(Task<T> task)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah. There is another marker.

@agocke - perhaps it is time to remove [RequiresPreviewFeatures]?
I assume we do not plan to ship with this?

</PropertyGroup>

<!-- Sources -->
<ItemGroup>
<Compile Include="$(CompilerCommonPath)\Internal\Runtime\DehydratedData.cs">
Expand Down
Loading