Can I use Async CTP with a portable library

I searched if there is Async CTP with a portable class library?

+6
c # portable-class-library async-ctp
source share
4 answers

Not. Async CTP has different DLLs for desktops, phones, Silverlight 4, and Silverlight 5.

Hopefully in the near future all of these platforms will support Task (and async) initially, and then portable class libraries will be able to use async.

Update: Microsoft.Bcl.Async can be installed for portable libraries designed for .NET 4.0 / 4.5, applications for the Windows Store, Silverlight 4/5, and Windows Phone 7.5 / 8.0

+5
source share

In Visual Studio 2012 RTM, aync / await syntax can be used in portable class libraries, at least when configuring .NET 4.5 and WinRT.
Change Now you can use async / await even in portable classes targeting WP7.5 / WP8 + Silverlight 4/5 + .NET 4.0 / 4.5 + WinRT using the Microsoft.Bcl.Async library .

+2
source share

As heads-up, we started planning for the release of Async, which will support portable from the bottom (.NET 4.0, SL5, Phone 7.5):

http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2691068-support-async-in-portable-class-libraries

+2
source share

You can use the beta version of Microsoft.Bcl.Async - I already use it in my projects, and it works stably so that it can be used in real projects.

0
source share

All Articles