471,354 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

using common classes and enums for all projects in a Solution

Hi All,
I am using VS.2008 and I have one windows apllication project and two web
project in my solution.

How can i use common classes and enums for all projects ?

I add "Solution Items" folder in my Solution and create a class in that
folder but i can not reach that class from any of the projects ..

Thanks in advance.
Jun 27 '08 #1
4 1937
On Jun 11, 10:45 am, "Nariban Barkan" <SomeFunny...@s.comwrote:
I am using VS.2008 and I have one windows apllication project and two web
project in my solution.

How can i use common classes and enums for all projects ?

I add "Solution Items" folder in my Solution and create a class in that
folder but i can not reach that class from any of the projects ..
Create a class library project, and then add a reference to that
project from each of the others.

Jon
Jun 27 '08 #2
Note that if you are using web-references (i.e. asmx etc) then things
get more interesting. I just answered something very similar over in:
microsoft.public.dotnet.framework ("Annoying Web Service Compilation
Issue").

Marc
Jun 27 '08 #3
Thanks ....
Jun 27 '08 #4
On Jun 11, 4:45*am, "Nariban Barkan" <SomeFunny...@s.comwrote:
Hi All,
I am using VS.2008 and I have one windows apllication project and two web
project in my solution.

How can i use common classes and enums for all projects ?

I add "Solution Items" folder in my Solution and create a class in that
folder but i can not reach that class from any of the projects ..

Thanks in advance.
For what's it worth I do find that method of sharing code useful in
one particular case. That is to share the assembly level attributes
for product and version information. From each project in the
solution you can "link" in a file from outside the project by clicking
the down arrow on the Add button in the Add Existing File dialog box
and chosing Add as Link.
Jun 27 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Vincent V | last post: by
3 posts views Thread by Jeremy S | last post: by
5 posts views Thread by Derek Martin | last post: by
7 posts views Thread by Adrian Hawryluk | last post: by
2 posts views Thread by Roy Chastain | last post: by
83 posts views Thread by liketofindoutwhy | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.