Results 1 to 2 of 2

Thread: Problem with Task library in 2010

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2009
    Posts
    99

    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

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Sep 2009
    Posts
    99

    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
  •  



Click Here to Expand Forum to Full Width