Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not include namespace System.Threading.Tasks

I am unable to include System.Threading.Tasks in my project.

I am Using Asp.net 2013 (4.5)

I am getting the following error -

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

I had refered earlier questions and they suggested in 4.0+ versions of ASP.NET it will work fine but I coudnt include it in my project.

Help me thanks.

like image 771
rajasekar25 Avatar asked Oct 20 '22 23:10

rajasekar25


1 Answers

System.Threading.Tasks.Task is in mscorlib which in .NET4.5. My project is not targeting, so in project properties need to change the target to 4.5.

like image 90
rajasekar25 Avatar answered Oct 22 '22 13:10

rajasekar25