How to user abstract class in EXE and DLL without get

G

Guest

I have an EXE and DLL in the same solution. Each one uses the same abstract
class in their respective code. How can I set up the build so that I don't
get the
"X is defined in multiple places" warning message.
 
N

Nicholas Paldino [.NET/C# MVP]

Scott,

As I told you before, you have to factor this out into another dll and
then reference it in both the exe and the dll.
 
M

Mahesh Devjibhai Dhola [MVP]

Hi,
First, you should define the Type in one place olny if you have the exact
same behavior.
If behavior is different but the names are same then just change namespace
of both the Type and then you can easily refer the Type by namespace and
type name.

HTH,
 

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