Global namespace already exists error from VS2008
Posted on 2009-02-23
I am getting the following error during the build process in VS2008.
The namespace '<global namespace>' already contains a definition for 'XXXXX'; XXXX is the name of my application and not really XXXXX (just to clarify).
I have searched the solution for XXXXX and have included namespace XXXXXX but can't find any reference. I am getting this after I had VS include a image file in the resources.resx file. I started getting this error last week when I added a Settings file which it named the same as my resources so I switched the names around and got things working. I then removed the image from the resource using the designer, but again same error.
I have searched the web and they all say to find the duplicate namespace but since I can't find one I really can't solve it following their advice.
Where is is this referenced if any and/or what else can I look for? I really don't want to rename the resource file since that will cause major headaches.