Cry about...
MS-Windows Troubleshooting
Namespace or type specified in the Imports ... doesn't contain any
public member or cannot be found
Symptom:
After adding an "imports" clause the following warning is generated:
Namespace or type specified in the Imports 'Some.Import' 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.
where "Some.Import" in the above is the name of the imported namespace. If you are
trying to use types that you expect to be provided by this import then
the warning may be followed by errors.
Cause
Typically this means that the project is missing a reference, so the
project cannot find the import.
Possible Remedies:
These notes have been tested with .Net 2.0, .NET 3.5
and .NET 4 applications
developed using Visual Studio 2005, Visual Studio 2008 and Visual Studio
2010, and may apply to other versions as well.
|