473,466 Members | 1,349 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Two Projects under one Solution?

Hi,

I've got a Visual Studio solution that contains two projects, P1 is my main application, P2 is a project that contains custom server controls I've created. I would like to have these Projects set up in Visual studio so if I make a change to P2 and recompile, P1 will automatically be updated to use the new assembly.

Here is what I've tried:
I can add a reference in P1 to P2's dll, but that appears to copy the dll to P1's bin directory, and it will never be updated upon a rebuild. I've tried setting the "Project Dependencies" of P1 to depend on P2, but without the reference set, I'll get compile errors that it can't find P2 objects. Also in P1 project properties, under common properties, the "reference path" has both projects bin directories.

Am I missing something here? What must I do to get two projects to compile together under one solution?

--Michael
Nov 18 '05 #1
3 1099
how did you set the reference? By project, to the dll directly?

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Raterus" <raterus@localhost> wrote in message
news:Oc**************@TK2MSFTNGP09.phx.gbl...
Hi,

I've got a Visual Studio solution that contains two projects, P1 is my main
application, P2 is a project that contains custom server controls I've
created. I would like to have these Projects set up in Visual studio so if
I make a change to P2 and recompile, P1 will automatically be updated to use
the new assembly.

Here is what I've tried:
I can add a reference in P1 to P2's dll, but that appears to copy the dll to
P1's bin directory, and it will never be updated upon a rebuild. I've tried
setting the "Project Dependencies" of P1 to depend on P2, but without the
reference set, I'll get compile errors that it can't find P2 objects. Also
in P1 project properties, under common properties, the "reference path" has
both projects bin directories.

Am I missing something here? What must I do to get two projects to compile
together under one solution?

--Michael
Nov 18 '05 #2
That's all you needed to say :-) I realized immediately that I was browsing to the dll, not clicking the project tab and selecting it there. Works great now, thanks!

Any "down to earth" help out there, besides what Microsoft puts out, that goes in detail about larger solutions like this? My ultimate goal is to ensure I don't have the exact same source files in two different projects, requiring me to make changes more than once.

Thanks again,
--Michael

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message news:eS**************@TK2MSFTNGP09.phx.gbl...
how did you set the reference? By project, to the dll directly?

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com


Nov 18 '05 #3
You can extrapolate what you just did to larger solutions. For example, a
current solution has 4 projects. One is just to hold the business objects.
To make cross-referencing easier, consider setting the root namespaces of
the related projects to be the same. Remember that namespace names are
case-sensitive (even for us VB types <g>).

I worked with a group on a solution with 26 projects! It was fine.

"Raterus" <raterus@localhost> wrote in message
news:Oq**************@TK2MSFTNGP11.phx.gbl...
That's all you needed to say :-) I realized immediately that I was browsing
to the dll, not clicking the project tab and selecting it there. Works
great now, thanks!

Any "down to earth" help out there, besides what Microsoft puts out, that
goes in detail about larger solutions like this? My ultimate goal is to
ensure I don't have the exact same source files in two different projects,
requiring me to make changes more than once.

Thanks again,
--Michael

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:eS**************@TK2MSFTNGP09.phx.gbl...
how did you set the reference? By project, to the dll directly?

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com

Nov 18 '05 #4

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

Similar topics

0
by: TEK | last post by:
Hello We have a quite huge project. To limit the solution size, rebuild time and so on we have divided the project in two different solution. One solution that holds the buiness entities, or...
5
by: JSheble | last post by:
I don't know if this is the correct newsgroup, if not, please excuse me... When a project is part of a solution, is there anyway to just open the project, bypassing the solution? When I try to...
16
by: Robert W. | last post by:
I'm building a solution that has 1 component for the Desktop and 1 component for the Pocket PC. (Though this isn't a mobile question). I have a data library that will be shared on both platforms....
3
by: epigram | last post by:
I've been creating some toy ASP.NET apps in an effort to understand the technology. I've something odd with regards to project/solution creation. If you create a new asp.net application, it...
10
by: Conan | last post by:
Hi, I am having a problem with .Net / Visual Studio that I can't find the cause of. I have searched newsgroups and the web and find people with similar but different (I think) problems. Here's...
0
by: AC [MVP MCMS] | last post by:
I have a full blown VS.NET 2003 solution with a handful of library assemblies, two web projects, and a few web service projects. The entire solution is in VSS. Recently our build server went...
1
by: Epetruk | last post by:
Hello, In VS2003, I used to have two solutions - a debug and release solution. Each solution had a webservice project and several other class library projects. The webservice project...
4
by: | last post by:
I'm going to ask the really short version of a rambing scenario I posted in Feb.: http://tinyurl.com/2nx4k7 The short version: a) A VS.NET solution can comprise many projects. If you're working...
1
by: =?Utf-8?B?RG91Zw==?= | last post by:
We have a very large code base and use the partitioned solution model for development and deployment. The problem is that in .NET 2005 the setup projects cause severe performance problems when...
3
by: Manikandan | last post by:
Hi, I'm copying projects from a solution in the vss. In my local system i created solution ,added that project(make modification related to solution) When i added this solution to vss, projects...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.