Sharing common code

  • Thread starter Thread starter Jeffrey Bradshaw
  • Start date Start date
J

Jeffrey Bradshaw

I have two apps (one is a service and one is a windows app) that share some
common classes. How can I make it so that I don't have to keep updating the
items in solution explorer?

Here's what I do now:
Test and debug the windows app. Make appropriate changes required there.
Once it's to my liking, I open the service app solution, tell it to add an
existing item and go and get the item from the windows app. It then copies
the file in to the service directly. Ideally I'd like to leave the code in
some common place that everybody can reference.

I've thought about making a DLL out the common class but 1) Don't know how
to do that and 2) how do you debug a dll?

TIA - Jeffrey.
 
* "Jeffrey Bradshaw said:
I have two apps (one is a service and one is a windows app) that share some
common classes. How can I make it so that I don't have to keep updating the
items in solution explorer? [...]
I've thought about making a DLL out the common class but 1) Don't know how
to do that and 2) how do you debug a dll?

Just create a project of type "Class Library", if you are using VS.NET.
Then you can reference this DLL from your other projects.
 

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

Back
Top