473,378 Members | 1,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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

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.resou rces" 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
Oct 11 '06 #1
0 1108

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Insert Pseudonym Here | last post by:
In FAQ 15.03, it is stated, "Note that a using directive does not declare any variables; it merely makes names available." No similar mention is made for using-declarations. Based on the name...
3
by: Imre | last post by:
As far as I know, the using directive is transitive, and I'm not sure I like this. So I'd like to ask if there's any workaround. Consider this: namespace MyNameSpace { void...
3
by: Apollo440 | last post by:
How to remove unused using directive? eg) using System; using System.Windows.Forms; <- i want to remove this unused using directive namespace foo { :
2
by: Mark Olbert | last post by:
I'm setting up an ASP.NET site on a Verio shared hosting platform, and they are telling me that the <compilation> directive in Web.config files is not supported in their environment. Can someone...
6
by: Todd A | last post by:
If I use the following in my code behind page: Public Class _Default Inherits System.Web.UI.Page The page will compile with no errors from the command line compiler (vbc.exe) But, If I...
1
by: Edward Wilde | last post by:
Hi, Does anyone know how to examine items in the ASP.NET cache that are added using the OutputCache directive in framework 1.1 i.e. <%@ OutputCache Duration="300" VaryByParam="None"...
4
by: Steve Trandahl | last post by:
I developed an asp.net 2.0 page without using the code-behind model because the page is so simple. Now I am trying to add "using System.Data.OracleClient" to the page, but asp doesn't seem to like...
2
by: Andre Siqueira | last post by:
We have a program, that was previous compiled by another people. We develop a library that this program loads. We have experience craches in this program. Looking at the gdb we find: #0 ...
1
by: Sagaert Johan | last post by:
Hi Is there a constant i could use to force conditional compilation based on whether i compile for CF or the Full NET framework ? Johan
1
by: =?Utf-8?B?Z2hhdXNl?= | last post by:
I'm trying to stream in image from another domain asynchronously. My ashx looks like this: <%@ WebHandler Language="VB" Class="Handlers.AsyncImageHandler" Debug="true" %> Here is the vb:...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.