Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can the Async CTP be used with a portable library

I was looking to see if the Async CTP with a portable class library?

like image 713
deanvmc Avatar asked Feb 05 '12 20:02

deanvmc


2 Answers

No. The Async CTP has different dlls for Desktop, Phone, Silverlight 4, and Silverlight 5.

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

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

like image 136
Stephen Cleary Avatar answered Oct 17 '22 02:10

Stephen Cleary


As a heads up, we've started planning a release of Async that will support down-level (.NET 4.0, SL5, Phone 7.5) portable:

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

like image 2
David Kean Avatar answered Oct 17 '22 00:10

David Kean