Namespaces not visible in Visual Studio 2003 developing with C#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a .Net Windows Forms application made up of several projects. Under
one project, I added a new folder under my GUI project called 'Components'.
I am going to add classes that manage menu items in my app. Well, I add
classes to the folder and their namesapces are XYZ_GUI.Components. Great, so
far.

I go to a class in another, separate project (XYZ_App) which references
XYZ_GUI project and it cannot see the namespace XYZ_GUI.Components. I have
rebuilt the XYZ_GUI class several times.

I'm sure the solution is something quite simple; any assistance is
appreciated.
 
1. Make sure everything is compiling
2. Make sure the DLLs are being copied correctly to your project folder
3. Ensure there are no errors in your project

You can check all three by examining the output window after a compile. You
often miss these as the project starts up in debug, so you think everything
is kosher. This is a very common issue, unfortunately.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
Gregory,

Thanks for your reply. I discovered that a process of my application was
still running yesterday (non-debug). Even though VS.Net would recompile
everything correctly, it did not copy the dll because the other process was
using it. I used the "rebootion solution", reopened VS.Net, and recompiled
and now Intellisense sees the Components namespace.

Yippie-ka-yay!

Ben
 
Back
Top