PC Review


Reply
Thread Tools Rate Thread

compilation directive for namespace -> resources file error???

 
 
Henry Jan
Guest
Posts: n/a
 
      11th Oct 2006
Hi All,

In VS2005, when I use compilation directive for namespace that contains a control Control1 class, e.g.:

#if _Version_A_
namespace Component.Windows.ASuite
#elif _Version_B_
namespace Component.Windows.BSuite
#elif _Version_C_
namespace Component.Windows.CSuite
#endif

In case, I set the compilation directive is _Version_A_, the namespace is used for the control class is Component.Windows.ASuite.
However, the resource file generated for this control is: Component.Windows.CSuite.Control1.resources.
(the compiler use the last namespace for the .resources file).

So, I see the error:
["obj\Debug\Component.Windows.CSuite.Control1.resources" was specified more than once in the "Resources" parameter. Doublicate items are
not supported by the "Resources" parameter.]

Please note that, there is not this error in VS2003.
Please help me to resolve this.

Thanks,
Nghia
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiler Error Message: CS0246: The type or namespace name could not be found (are you missing a using directive or an assembly reference?) infinetinc@gmail.com Microsoft ASP .NET 4 26th Dec 2006 04:46 PM
Embed .resources in Exe file after compilation John Microsoft C# .NET 0 31st Jul 2006 11:53 AM
Compilation error CS0246: The type or namespace name 'MySql' could not be found Benny Dein Microsoft ASP .NET 0 20th Mar 2006 06:30 PM
Weird compilation error: Cannot declare a namespace and a type both named 'a' Simon Laroche Microsoft Dot NET Framework 0 3rd Feb 2004 04:44 PM
compilation directive disabled Mark Olbert Microsoft ASP .NET 4 25th Nov 2003 03:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:07 PM.