Using Microsoft.Bcl.Async with Code Analysis causes errors

前端 未结 3 1476
遥遥无期
遥遥无期 2020-12-28 17:22

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.

T

3条回答
  •  隐瞒了意图╮
    2020-12-28 18:04

    This happens because the versions of the dependencies declared in Bcl.Async assemblies don't match those available at analysis time. The simplest workaround is to adjust FxCop's AssemblyReferenceResolveMode as described at http://davesbox.com/archive/2008/06/14/reference-resolutions-changes-in-code-analysis-and-fxcop-part-2.aspx.

提交回复
热议问题