Solved

Compiler warning - 'System.Threading.Tasks' doesn't contain any public member or cannot be found. Make sure the namespace or the type ...

Posted on 2014-12-22
2
1,415 Views
Last Modified: 2014-12-22
Hi,

I downgraded a project from 4.5.1 to 3.5 (server compatibility) and then I got this warning:

Namespace or type specified in the project-level Imports 'System.Threading.Tasks' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

The program still works fine, but I'd like to get rid of this error if possible.

tnx
~j
0
Comment
Question by:prosit
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 40513624
As far as I can tell, TPL was introduced with .NET 4.0. If you're rocking 3.5, then that would be why you get the error. Have you referenced the namespace anywhere? There may be an entry in your project file.
0
 
LVL 2

Author Closing Comment

by:prosit
ID: 40513639
Hm, it was in the .vbproj file, but not edit'able from the GUI...  resolved, thanks!
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question