I met Tasks using .NET Framework 4.5 (with async and await) and I need to know if they are part of the standard .NET Framework 4.
Asked
Active
Viewed 727 times
0
-
2Task avaiable from .NET 4.0 and asinca/wait are part of C# 5.0 – Hamlet Hakobyan Dec 30 '12 at 18:22
-
I have googled before but I dont know if Task Parallel Library is a standard feature of the .NET Framework 4 or an addon. Sorry to bother you man – Daniel San Dec 30 '12 at 19:00
-
Related: [Using async-await on .net 4](http://stackoverflow.com/questions/9110472/using-async-await-on-net-4) – CodesInChaos Dec 30 '12 at 21:50
1 Answers
2
Task
and related classes are available in .Net 4. Async and await are part of C# 5, and these rely on methods (e.g. GetAwaiter) which are not defined on Task
until .Net 4.5. You can use async/await when targeting .Net 4 if you use the Async targeting pack along with a C# 5 compiler.

Lee
- 142,018
- 20
- 234
- 287