[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2004-04-28
3
Medium Priority
?
226 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 200 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month19 days, 9 hours left to enroll

872 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