Link to home
Start Free TrialLog in
Avatar of HLRosenberger
HLRosenbergerFlag for United States of America

asked on

Access to class from any project within a solution.

I have solution that contains a number of projects.  Is there a way to create a class at a solution level so that it can be used from any project within the solution?
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Create an instance of the class - yes.  The class declaration/definition would be best in a dll shared by all the projects
Avatar of HLRosenberger

ASKER

I was hoping there would be a way just using Visual Studio - without creating a DLL.
You could try to include the file with the definition multiple times - one per project - but I would not recommend it.  I'm not evencertain if it would work.

ps.  Visual studio can create dll's as well as exe files.
yes, I can include it in each project, but I dont want to do that.
ASKER CERTIFIED SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I added it to a DLL that will be used by all project.