R
Random
I'm wondering if anyone has come across this strange behavior in the VS 2005
IDE.
I have several classes in my App_Code directory, organized in folders and
namespace declarations. Some of these classes need to reference other
classes in their procedures. So, simply enough, I include "Imports"
statements so I don't have to use the fully qualified names everywhere in my
code.
The problem I'm encountering is that VS gives me the "Namespace or type
specified in the Imports '...' 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 doesn't use any
aliases."
This only happens in some of the classes, for some of my "Imports"
statements, not all. Very weird. I can't make out any consistency.
IDE.
I have several classes in my App_Code directory, organized in folders and
namespace declarations. Some of these classes need to reference other
classes in their procedures. So, simply enough, I include "Imports"
statements so I don't have to use the fully qualified names everywhere in my
code.
The problem I'm encountering is that VS gives me the "Namespace or type
specified in the Imports '...' 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 doesn't use any
aliases."
This only happens in some of the classes, for some of my "Imports"
statements, not all. Very weird. I can't make out any consistency.