No more of that sinking feeling when using async for .Net 4/Silverlight 5 Projects - The Async Targeting Pack for Visual Studio 11 now available (Nuget: "Microsoft.CompilerServices.AsyncTargetingPack")
"If you’ve held off on trying Visual Studio 11 Beta because your .NET 4 or Silverlight 5 app uses the Async CTP, your wait is over! Today we’ve published the Async Targeting Pack for Visual Studio 11, a NuGet package that lets your Visual Studio 11 projects target .NET 4 and Silverlight 5 while taking advantage of C#’s new await keyword. While Visual Studio 11 provides built-in support for await in projects that target .NET 4.5 or .NET for Metro style apps, this targeting pack provides the API support to expand the set of target platforms to include .NET 4 and Silverlight 5 as well.
Async Targeting Pack for Visual Studio 11: End-User License Agreement, Installation and Release Notes
Date published: 4/26/2012
AsyncTargetingPack-EULA.html, 9 KB
AsyncTargetingPack-InstallationAndReleaseNotes.html, 13 KB
The "Async Targeting Pack for Visual Studio 11" enables projects targeting .NET Framework 4.0 or Silverlight 5 to use the Async language feature in C# 5 and Visual Basic 11. This pack requires Visual Studio 11 and will not work with Visual Studio 2010.
The pack contains the API support necessary to use the 'async' and 'await' keywords in C# 5.0 and Visual Basic 11, as well as a set of Task-based adapter APIs that allow using some of the existing asynchronous APIs with the new language keywords.
This targeting pack is not required for projects targeting .NET Framework 4.5 or .NET for Metro style apps. It is only required for projects targeting Silverlight 5 and .NET Framework 4.0. Earlier platform releases are not supported.
If you are already familiar with NuGet:
The package ID of the Async Targeting Pack that you can use when searching for it is: "Microsoft.CompilerServices.AsyncTargetingPack".
If you are not yet very familiar with NuGet:
Download the "AsyncTargetingPack-InstallationAndReleaseNotes.html" document from this page and follow the links in that document to learn how to use NuGet with Microsoft Visual Studio.
So kind of a mix of both worlds. If you want to target .Net 4.0, yet want to use async, this is your ticket.
Related Past Post XRef:
Visual Studio Async CTP (Version 3) Released - Lots of compatibility added, bugs squashed, features added and the EULA updated to allow Production usage (not encouraged, but it IS allowed now)
PDC10 Async Round-up