async/await not working for portable library - by D Svensson

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 731759 Comments
Status Closed Workarounds
Type Bug Repros 6
Opened 3/17/2012 11:00:43 AM
Access Restriction Public


Using the async/await keywords in a portabe library result in an error.

"error CS1993: Cannot find all types required by the 'async' modifier. Are you targeting the wrong framework version, or missing a reference to an assembly?"

Note that all the targeted framework support Tasks has async/await support.
Sign in to post a comment.
Posted by Microsoft on 4/29/2014 at 12:24 PM
Thank you for reporting this issue. This issue has been fixed in Visual Studio 2013. You can install a trial version of Visual Studio 2013 with the fix from:
Posted by Microsoft on 11/19/2012 at 9:41 AM
Thanks for the filing the bug, we've released an updated async pack that adds support for portable library, here:
Posted by Martin Suchan on 6/23/2012 at 2:19 PM
Since async/await is the fundamental stone of WinRT app development, creating Portable Libraries without this language features is close to impossible.
Async/await is available both in .NET 4.5 and WinRT, and using Async Targeting Pack even in .NET 4.0, Silverlight 5 so it's expected we should be able to use it in Portable Libraries targeting these platforms.
I hope async/await will be available in Portable Libraries in Visual Studio 2012 RTM and also Windows Phone 8 SDK once it's released.
Posted by MS-Moderator07 [Feedback Moderator] on 3/18/2012 at 11:29 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by MS-Moderator01 on 3/17/2012 at 11:48 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(