CS1595 Error

  • Thread starter Thread starter Prem S
  • Start date Start date
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
 
Are you sure there are no classes with the same name in a single
namespace?

Regards
Senthil
 
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.
 
Back
Top