Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
GitHub or Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
See http://msdn.microsoft.com/en-us/library/hh156513%28v=vs.110%29.aspx for 'async keyword should be contextual'.
I was using it as 'bool async' parameter and then later as 'async ? a : b' and the Mono compiler has a problem with this latter use, saying:
Test/System.IO.Pipes/PipeSecurityTest.cs(177,38): error CS0103: The name `Async' does not exist in the current context
Notice it also alters the casing...
I cannot reproduce the issue
my sample compiles fine with 2.11
public static void Foo (bool async)
int a = 0;
int b = 2;
var r = async ? a : b;
public static void Main ()
System.Core/Test/System.IO.Pipes/PipeSecurityTest.cs is where I was running into this issue.
If you replace the four @async with async you will encounter it.
Fixed in master