473,378 Members | 1,699 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,378 software developers and data experts.

Solution - Project and common files

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 project
in the same solution? How do I set them in the project explorer?

Thank you

Marty
Nov 21 '05 #1
3 1868
"Marty" <xm******@hotmail.com> schrieb:
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 project in
the same solution? How do I set them in the project explorer?


Add a new project of type "Class Library", then add the classes which are
shared between two or more projects in the solution to the class library
project and reference the class library project from your other projects.
The classes only need to be added to the class library, and not to the other
projects in the solution.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2
I finally got to the same idea.

Thanks your for your help. :)

Marty

Herfried K. Wagner [MVP] wrote:
"Marty" <xm******@hotmail.com> schrieb:
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
project in the same solution? How do I set them in the project explorer?

Add a new project of type "Class Library", then add the classes which
are shared between two or more projects in the solution to the class
library project and reference the class library project from your other
projects. The classes only need to be added to the class library, and
not to the other projects in the solution.

Nov 21 '05 #3
You can share at compiled-level (sharing the binary) using a Class Library
as explained in the other post, or you can share at source code level,
putting the common files in a folder and using the "Link File" option in the
dropdown button of the Add Existing Item dialog.

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com
"Marty" <xm******@hotmail.com> escribió en el mensaje
news:vv2Wd.1712$ZO2.1102@edtnps84...
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 project in
the same solution? How do I set them in the project explorer?

Thank you

Marty

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ray Mitchell | last post by:
Hello, I have two C# applications that use some files common to both and some files unique to each. On the computer itself I have them stored them in folders PROJA, PROJB, and COMMON. I would...
10
by: Tim Mulholland | last post by:
My company is about to begin working on an ASP.NET application. There are going to be two primary developers working on this project. It will be a fairly deep project (lots of lines of code) but...
1
by: Simon Harris | last post by:
Hi All, I work in a team of three developers. 99% of our work is developing 'applications' for our organisations Intranet - mainly whats become known to us as e-employee apps, such as...
0
by: Chris Morse | last post by:
Hi, I am creating a solution with two projects. Basically, they share a few common class files and forms. I finished one project, and it compiles and runs fine. I just finished bringing in...
3
by: Danny | last post by:
Hi I trying to master msBuild but have a problem. I have a solution that I wish to build using msbuild but want to override BeforeBuild/AfterBuild targets for each of the projects. I trying to...
0
by: pete | last post by:
Greetings all, I am going to attempt to describe the issue that I am having in full. I apologize ahead of time that this may be a long posting, however, I have found no other solution to my...
3
by: Sami Lakka | last post by:
I have a solution with a two projects. The first project contains my classes and an executable using those classes. The second project contains unit tests for the classes. Because the unit test...
4
by: | last post by:
I have learned about compartmentalizing my code base using Class Libraries. I have my common code such as my ORM framework broken out into their own Class Libraries, which are referenced as...
0
by: dihola | last post by:
Hi all, I am developing 2 websites (A and B) that share a lot of pages and classes, and I wonder if I am doing it the right way. I have extracted the common classes and created master pages for all...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.