473,399 Members | 3,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 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 2008
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Vincent V | last post by:
Hey i am just starting a new project and from the start i want to make sure my app is as Object Orientated as possible I have a couple of questions in relation to this Question 1: Should i...
3
by: Jeremy S | last post by:
I wrote an ASP.NET application and pretty much separated out various layers of functionality into individual class files (e.g., dal.cs for all db access). It's currently all in one VS.NET project...
5
by: Derek Martin | last post by:
I am creating a windows service and have added a reference to a DLL project that I have created. That DLL file is correctly referenced in both a windows app and a web app, all in the same...
3
by: Marty | last post by:
Hi, I am building a solution with 2 projects within it. There is several common classes (.vb) files between the two projects. How can I seperate common classes from private classes for each...
7
by: Adrian Hawryluk | last post by:
Can one define a partial class (first part containing constants like enums) and then define the rest of the class elsewhere? I ask this because I've had in the past needed to defined two classes...
1
by: Matt Owens | last post by:
Hi, Im setting up a new project in which I'd like to share code across numerous other projects, specifically a control library and an array of common objects. Im not really sure how best to go...
2
by: Roy Chastain | last post by:
I have some 'base' schema definitions that are going to be in several projects in the future. The processing of resulting classes created by XSD will be consistent across the new projects. I...
83
by: liketofindoutwhy | last post by:
I am learning more and more Prototype and Script.aculo.us and got the Bungee book... and wonder if I should get some books on jQuery (jQuery in Action, and Learning jQuery) and start learning about...
4
by: Nariban Barkan | last post by:
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"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.