Unable to use System.Threading.Tasks in WP7 application

可紊 提交于 2019-12-03 06:23:09

OK. Apparently, there is no official System.Threading.Tasks for a WP7 project. However, after getting proper sleep and searching again, i found that a package exists at NuGet that simply answers all my needs: Task Parallel Library for Silverlight. The version is at 2.1.2 at the time of writing.

Since Hasan answered the question, an official way has popped up. If you are targetting Windows Phone 7.5, the new official way of doing it would be to get the Microsoft.Bcl. This also works for .NET Framework 4 and Silverlight 4/5. I have only personally used it for .NET Portable Class Libraries and Windows Phone projects.

Microsoft.Bcl is available on the Nuget website or by running this command in your Package Manager console.

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