Failed to 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 have referenced earlier questions and they suggested in 4.0+ versions of ASP.NET, it will work fine, but I cannot include it in my project.

Help me thank.

+3


source to share


1 answer


System.Threading.Tasks.Task

is in mscorlib

, which is in .NET4.5

. My project is not targeting, so in project properties you need to change target to 4.5

.



+2


source







All Articles