Solved

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

Posted on 2004-04-28
3
212 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
ID: 10937599
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
ID: 10937625
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
ID: 10937812
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

867 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

16 Experts available now in Live!

Get 1:1 Help Now