Registry Mirror
搜索
Skip to content
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Files
Expand file tree
master
Breadcrumbs
SharpCoreDB
/
Directory.Build.targets
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
17 lines (15 loc) · 1.16 KB
master
Breadcrumbs
SharpCoreDB
/
Directory.Build.targets
Copy path
Top
File metadata and controls
Code
Blame
17 lines (15 loc) · 1.16 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<Project>
<!-- .NET 11 Runtime Async, defined once for every net11.0 project in the repository.
async/await then compiles to runtime-native async instead of a compiler-generated state machine per
method, and a synchronously-completing Task/Task<T>-returning method no longer allocates its result.
Measured on the .NET 11 GA SDK (11.0.100) with a 1.000-call loop: 71,4 B/call before, 0 B/call after,
and no IAsyncStateMachine types left in the assembly (async iterators keep theirs — see the canary).
Opt a single project out with <UseRuntimeAsync>false</UseRuntimeAsync>.
Canary: tests/SharpCoreDB.Tests/Net11/RuntimeAsyncCodegenTests.cs.
This lives in Directory.Build.targets rather than Directory.Build.props on purpose: props are
evaluated before the project body, where $(TargetFramework) is still empty, so a TFM-conditioned
switch there silently never applies. Targets are imported after the body and see the TFM. -->
<PropertyGroup Condition="$(TargetFramework.StartsWith('net11.0')) AND '$(UseRuntimeAsync)' != 'false'">
<Features>$(Features);runtime-async=on</Features>
</PropertyGroup>
</Project>
You can’t perform that action at this time.