Solved

Re-use Classes that exist in multiple-project solution.

Posted on 2004-04-28
3
205 Views
Last Modified: 2010-04-24
I have a Solution in Visual Studio.NET which contains 2 Projects. Both will do the same thing, only one will be a standalone application and the other will be a windows service. I have created the standalone app already and have set up some classes that could be resused within my 'Service' project in this same solution.
The question is, how do I go about referencing the classes I used in my Standalone App project so I don't need to copy the same files into my Service project?

Thanks in advance...
0
Comment
Question by:Starnzy
  • 2
3 Comments
 
LVL 21

Expert Comment

by:tovvenki
Comment Utility
Hi,
  You can add the classes into a new assembly and then add the assembly into the GAC and reference the assembly in both the projects.

Regards,
Venki
0
 

Author Comment

by:Starnzy
Comment Utility
Sorry, I'm still quite new to all this. Can you explain how I would go about the above?
Thanks

PS What's the 'GAC' ?
Thanks
0
 
LVL 21

Accepted Solution

by:
tovvenki earned 50 total points
Comment Utility
Hi,
Please have a look at this for installing the assembly into the GAC
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconworkingwithassembliesglobalassemblycache.asp

GAC - Global Assembly Cache.

Regards,
venki
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now