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

风流意气都作罢 提交于 2019-12-03 11:20:57

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

Justin Harvey

From the page you downloaded from:

This targeting pack is not required for projects targeting .NET Framework 4.5 or .NET for Windows Store apps. It is only required for projects targeting Silverlight 5 and .NET Framework 4.0. Earlier platform releases are not supported.

Upgarde to Silverlight 5?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!