471,327 Members | 2,653 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

How to user abstract class in EXE and DLL without get

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.
Dec 13 '05 #1
2 1004
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,

"scottt" <sc****@discussions.microsoft.com> wrote in message
news:00**********************************@microsof t.com...
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.

Dec 13 '05 #2
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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"scottt" <sc****@discussions.microsoft.com> wrote in message
news:00**********************************@microsof t.com...
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.

Dec 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Dan Sikorsky | last post: by
9 posts views Thread by Sean Kirkpatrick | last post: by
1 post views Thread by D Witherspoon | last post: by
8 posts views Thread by mark.norgate | last post: by
reply views Thread by emin.shopper | last post: by
6 posts views Thread by Miguel Guedes | last post: by

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.