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
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,300 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
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…

792 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