找不到类型或命名空间任务 [英] type or namespace Task could not be found

查看:29
本文介绍了找不到类型或命名空间任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows 手机上使用 Microsoft Visual Studio express,当我在我的应用程序中使用 TASK 时,出现上述错误,甚至 System.Threading.Tasks 也没有找到.我的问题是什么??

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??

推荐答案

您的项目至少需要面向 .NET Framework 4.您可以在项目属性下更改此设置.

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.

这篇关于找不到类型或命名空间任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆