简体   繁体   中英

type or namespace Task could not be found

I'm using Microsoft Visual Studio express for windows phone, when i use TASK in my app, i get the above mentioned error, even System.Threading.Tasks is also not found. What could be my problem??

右键单击Task,选择Resolve> System.Threading.Tasks.Task

You need to target at least .NET Framework 4 in your project. You can change this under project properties.

Also, changing the target will not add the reference for the library, so you have to do this manually after changing the target framework.

在WP8(测试设备Lumia 920)上,按照以下说明解决了我的问题: http//www.nuget.org/packages/Microsoft.Bcl.Async

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM