Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

System.Threading.Task Is not working

Tags:

c#

asp.net

System.Threading.Tasks is not Working in my project. I has been trying to use All DLL regarded This error
I Search various Code But Did not Get Any Solution

I am Using Asp.net 2008 (3.5)

Error show here -

The type or namespace name 'Tasks' does not exist in the namespace 'System.Threading' (are you missing an assembly reference?)

so help me thanks

like image 693
code save Avatar asked Nov 05 '13 07:11

code save


2 Answers

This library is not available in .NET 3.5, make sure that you are targeting .NET 4.0 in your project properties.

Ref: http://msdn.microsoft.com/library/system.threading.tasks.aspx

like image 144
Irvin Dominin Avatar answered Oct 03 '22 10:10

Irvin Dominin


The correct class (and namespace) name is System.Threading.Tasks.Task which is located in mscorlib.dll and is available in .NET 4+. If you want to use it in .NET 3.5, you can do this by using Microsoft Reactive Extensions.

like image 29
amiry jd Avatar answered Oct 03 '22 10:10

amiry jd