"The namespace <global namespace > already contains a definition for..."

"The namespace <global namespace > already contains a definition for..."

Post by Harr » Sat, 09 Dec 2006 05:27:31


Using VS2005 on Vista. I added a file to and existing web solution and
started getting this error:

"The namespace <global namespace > already contains a definition for
namespace.xxx"

I may have added a class that was already in the solution and need to edit
the global namespace. So where is that?

Thanks
Harry
 
 
 

"The namespace <global namespace > already contains a definition for..."

Post by Dave Sexto » Sat, 09 Dec 2006 08:47:10

Hi Harry,

Use the Find and Replace tool to search for all classes with the same name
as yours and either rename them or just rename yours :)

--
Dave Sexton

 
 
 

"The namespace <global namespace > already contains a definition for..."

Post by Harr » Sat, 09 Dec 2006 23:07:19

Thanks, Dave, that did it.