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
|