Xamarin.Mac async and await syntax support


I'm not able to compile Mamarin.Mac project while I'm using async and await syntax. I'm constantly receiving error:

Error CS1993: Cannot find compiler required types for asynchronous functions support. Are you targeting the wrong framework version? (CS1993)

Is it possible to use async/await syntax in Xamarin.Mac projects? And if yes, could somebody, please, send me compilable example of Xamarin.Mac project with async/await?

Guys from support answered that async/await syntax should work in Xamarin.Mac project type.

Thank you.


  • SteveFlackSteveFlack GBMember ✭✭

    You probably need to add:


    to the Mac .csproj file in the top PropertyGroup.

  • Robot1queRobot1que USMember

    Thank you very much. It works now.

    But still, why do I need to do it manually? Why Target .NET Framework field is hidden in Xamarin.Mac project options in Xamarin Studio?

  • SteveFlackSteveFlack GBMember ✭✭

    It's probably because it's not quite ready. I've had some linker issues related to PCLs with 4.5 on Xam.Mac that don't occur for me on .Net 4.0. I ended up creating a separate mirrored class library project of the PCL so it would work with .Net 4.5.

Sign In or Register to comment.