CS1595 Error

P

Prem S

Hi all

I have a C#.NET solution that contains about 10 projects. One of the
projects is a set of user built controls which gets referenced in a
couple of projects. Some of the these projects, that reference this
project which contains the user built controls, are also referenced in
the main application. The main application also references the user
built control library.

However, when compiling the application...I get a CS1595 error saying
that some classes are defined in multiple places.

Does anyone know how to fix this problem?

I have outlined an example of the problem I have encountered below.

Solution contains projects A, B, C, D.

A is a set of user built controls.
B and C reference A as they consume these user controls.
D also references A, and also references some of the dialogs used in B
and C.

Any ideas would be greatly appreciated.

Thanks
Prem
 
S

sadhu

Are you sure there are no classes with the same name in a single
namespace?

Regards
Senthil
 
P

Prem S

Yes I am sure that there are no classes with the same name in the
namespace.

Thanks
Prem
 
J

Jon Skeet [C# MVP]

Prem S said:
I have a C#.NET solution that contains about 10 projects. One of the
projects is a set of user built controls which gets referenced in a
couple of projects. Some of the these projects, that reference this
project which contains the user built controls, are also referenced in
the main application. The main application also references the user
built control library.

However, when compiling the application...I get a CS1595 error saying
that some classes are defined in multiple places.

Does anyone know how to fix this problem?

I have outlined an example of the problem I have encountered below.

Solution contains projects A, B, C, D.

A is a set of user built controls.
B and C reference A as they consume these user controls.
D also references A, and also references some of the dialogs used in B
and C.

Any ideas would be greatly appreciated.

Could you post a short but complete program which demonstrates the
problem?

See http://www.pobox.com/~skeet/csharp/complete.html for details of
what I mean by that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top