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

后端 未结 2 1897
难免孤独
难免孤独 2021-02-13 14:32

I have following configuration of my PC:

  • Windows 8
  • Visual Studio 2012
  • .NET Framework 4.5

My Project Configuration is:

2条回答
  •  旧巷少年郎
    2021-02-13 14:54

    There is a newer version of the Async targeting package which supports Silverlight 4. Search for Microsoft.BCL.Async in NuGet, or run install-package Microsoft.Bcl.Async –prein the Package Manager Console. The package supports SL4, WP 7.1+ and Portable Libraries (yes!)

    You will find a detailed description in the BCL team's blog Using async/await without .NET Framework 4.5

提交回复
热议问题