-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Use prototype Roslyn compiler for runtime-async #115531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
03becbe
1946d2d
a725a8a
d6511db
5bc0851
19fba50
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,11 @@ | |
| <Import Project="$(MSBuildThisFileDirectory)\Common\dir.sdkbuild.props" Condition="'$(UsingMicrosoftNETSdk)' == 'true'" /> | ||
| <Import Project="$(MSBuildThisFileDirectory)\Common\dir.common.props" Condition="'$(UsingMicrosoftNETSdk)' != 'true'" /> | ||
|
|
||
| <PropertyGroup> | ||
| <!-- Override the compiler version with a private build that supports runtime-async --> | ||
| <MicrosoftNetCompilersToolsetVersion>5.0.0-1.25259.6</MicrosoftNetCompilersToolsetVersion> | ||
| </PropertyGroup> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a reason to have this in src/tests/Directory.Build.props instead of src/tests/async/Directory.Build.props?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this worked when I tried it earlier. Let me try again.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It needs to be here because we don't restore individual test projects (there's too many). Instead we restore the test_dependencies projects and point the individual test projects at those restore results. One day I'll get this cleaned up I hope. |
||
|
|
||
| <PropertyGroup> | ||
| <RunningOnUnix Condition="('$(RunningOnUnix)' == '') And ('$(MSBuildRuntimeType)' == 'Core') And ('$(OS)'!='Windows_NT')">true</RunningOnUnix> | ||
| </PropertyGroup> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| namespace System.Runtime.CompilerServices; | ||
agocke marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| [AttributeUsage(AttributeTargets.Method)] | ||
| public class RuntimeAsyncMethodGenerationAttribute(bool runtimeAsync) : Attribute | ||
| { | ||
| public bool RuntimeAsync { get; } = runtimeAsync; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
| <PropertyGroup> | ||
| <Optimize>True</Optimize> | ||
| <Features>$(Features);runtime-async</Features> | ||
|
||
| </PropertyGroup> | ||
| <ItemGroup> | ||
| <Compile Include="$(MSBuildProjectName).cs" /> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.