|
-
Sep 20th, 2010, 02:47 PM
#1
Thread Starter
Lively Member
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
-
Sep 20th, 2010, 04:00 PM
#2
Thread Starter
Lively Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|