Repository navigation
Enable runtime async for all .NET 12 platforms - #138347
Closed
MichalStrehovsky wants to merge 2 commits into
Closed
MichalStrehovsky wants to merge 2 commits into
MichalStrehovsky wants to merge 2 commits into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0569df38-69c0-490d-a237-112f811bccd7
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0569df38-69c0-490d-a237-112f811bccd7
|
Azure Pipelines: Successfully started running 3 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @dotnet/area-infrastructure-libraries |
3 tasks
jakobbotsch
approved these changes
Nov 26, 2026
jkotas
reviewed
Nov 26, 2026
| <!-- Runtime async is supported on all platforms starting with .NET 12. --> | ||
| <PropertyGroup Condition="'$(RuntimeAsyncSupported)' == ''"> | ||
| <RuntimeAsyncSupported Condition="'$(TargetOS)' != 'browser' | ||
| <RuntimeAsyncSupported Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net12.0')) |
Member
There was a problem hiding this comment.
Can this be simplified to just <RuntimeAsyncSupported Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net12.0'))">?
TargetOS does not track package-specific OS if there is any. It tracks the runtime OS that is always for the current .NET version.
jkotas
reviewed
Nov 26, 2026
| <!-- Runtime async is supported on all platforms starting with .NET 12. --> | ||
| <PropertyGroup Condition="'$(RuntimeAsyncSupported)' == ''"> | ||
| <RuntimeAsyncSupported Condition="'$(TargetOS)' != 'browser' | ||
| <RuntimeAsyncSupported Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net12.0')) |
Member
There was a problem hiding this comment.
Same here - I think this can be simplified to just <RuntimeAsyncSupported>true</RuntimeAsyncSupported>
Member
|
#138349 has the correct shape |
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.
Shaves off 50 kB from a
dotnet new blazorwasmtemplate with native AOT. We'll be able to shave off more when aspnetcore makes the switch too.