Using Microsoft.Bcl.Async with Code Analysis causes errors
I'm trying to use Microsoft.Bcl.Async and Code Analysis, but when I run Code Analysis I get one or more errors. I'm using Visual Studio 2012 with Update 2. This is easy for me to reproduce: Create a new default Console App that targets .Net 4 . Right click References then select Manage NuGet Packages... Click Online and type async into the Search Online box. You should see Async for .Net Framework 4 ... . Click Install and accept all questions. Add to Main() a line that says: TaskEx.Delay(1000); and a using System.Threading.Tasks; Go to project properties, Code Analysis section and tick Enable