Arthur Kater
Arthur Kater

Reputation: 846

MvvmCross using Xamarin newly supported Async

Now Xamarin officialy supports the new C# 5 Async keywords async and await, how could we use them in an MvvmCross project using PCL and what do we need to reference/install (Task<>, what PCL profile etc.)

regards,

Arthur

Upvotes: 0

Views: 305

Answers (1)

Cheesebaron
Cheesebaron

Reputation: 24460

Async/await is available in PCL's targeting .NET 4.5 and Windows Phone 8 and Windows Store projects. This means something like Profile78 could be useful.

However, if you need to target Windows Phone 7 you will need to work your way around the licensing issues that come with using Microsoft.BCL, as it is only allowed to use that on Microsoft platforms. There is Async Bridge from this years Build conference, by Daniel Plaisted, which could help. I've had it working in my Xamarin projects.

Upvotes: 2

Related Questions