Solved

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

Posted on 2004-04-28
3
215 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

837 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