Problem with Task library in 2010
I just converted a project from 2008 to 2010. I didn't encounter any errors in the conversion.
I tried to add
HTML Code:
Imports System.Threading.Tasks
. This gives the "...doesn't contain any public member..." warning and naturally, the .Tasks library is not recognized. Is there any trick to the conversion, setting in the properties, etc. that I need to deal with?
Note that I have a "from scratch" project that accesses the System.Threading.Tasks class with no problem. Both projects are contained in the same Projects folder as in:
Projects/ProjectThatWorks
Projects/ProjectThatDoesn'tWork
Re: Problem with Task library in 2010
Found it:
If you want to use .NET 4 and you're converting from a previous VB/.NET version, you have to supply the new .NET version manually.
Right click the project --> choose the property page--> choose the compile tab--> click advanced compile option --> in the target framework choose the desired .NET target.