Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 610
Aju Avatar asked Oct 28 '13 14:10

Aju


2 Answers

Right click on Task, choose Resolve > System.Threading.Tasks.Task

like image 167
Volstok Avatar answered Nov 15 '22 17:11

Volstok


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.

like image 34
Igor Ševo Avatar answered Nov 15 '22 15:11

Igor Ševo