Link to home
Start Free TrialLog in
Avatar of rcl58
rcl58

asked on

Building Multi-Solution App

Using VB 2005:

I have an application that uses several different solutions and projects. I cannot figure out how I should setup the references in each project. When I compile from the lowest level to the highest I keep running into conflicts between different version. I build starting at #1 and go to #3.

Solution #1
     Project #1,1  references #1,2; #1,3; #1,4
     Project #1,2
     Project #1,3  references #1,4
     Project #1,4
Solution #2
     Project #2,1  references #1,2; #1,3; #1,4; #2,3
     Project #2,2
     Project #2,3
Solution #3
     Project #3,1  references #3,2
     Project #3,2  references #1,2; #1,3; #1,4; #2,1; #2,2
     Project #3,3

When I add the references to #3,1 and #3,2 in which directories should I reference? Project #1,1 bin has many of the references I need but do I get them all there or point to each individual directory? Or do I get the references form #2,1 etc.?

Thanks for the help.
Bob

ASKER CERTIFIED SOLUTION
Avatar of strickdd
strickdd
Flag of United States of America 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
Avatar of rcl58
rcl58

ASKER

Thanks for the help strickdd.
When I add the reference to my project the path show the local file even though I pointed to the correct directory. It also marks the column "Copy Local" as True. Do I need to change this and if so how?

Thanks again,
Bob
Avatar of rcl58

ASKER

When I add a reference by pointing to the path of the dll the refrence window shows my path as something different that I selected? I don't get it...

Thanks
Bob
Avatar of Bob Learned
In your AssemblyInfo.vb, are you using versions like 1.0.* or 1.0.0.0?

Bob
Avatar of rcl58

ASKER

All my AssemblyInfo.vb's have
<Assembly: AssemblyVersion("1.0.*")>

Bob
SOLUTION
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
Avatar of rcl58

ASKER


Bob thanks for your version suggestion and I have implemented the change across the board. Also checked the build order of each project and they look fine. I was able to rebuild all my solutions a couple of times. Then all of a sudden I started getting the error/warnings again (below).  I had rebuilt my LO & UT solution then tried to rebuild the next higher solution and it does not find the LO & UT dlls anymore. But I can see they are in the directory!!!

Now in reality I actually have 5 solutions that I rebuild progressively to my final app. I have all of the open at the same time and just move upstream and perform the rebuilds. Could having them all open cause a problem in VS 2005? I am trying to convert my app to .Net 2.0. I was able to have them all open in VS 2003.


Rebuild Solution ERRORS:
Warning      1      The referenced component 'InfusionLogic.LO' could not be found.
Warning      2      The referenced component 'InfusionLogic.UT' could not be found.

Warning      6      Namespace or type specified in the Imports 'InfusionLogic.LO' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.      

and more& etc. etc.


FYI the References setting on the solution than wont rebuild:

Reference Name: InfusionLogic.LO
Type: .NET
Version: 1.0.0.0
Copy Local: False
Specific Version: False
Path: C:\calc{list}\development 001\List Objects\InfusionLogic.LO\bin\InfusionLogic.LO.dll

Reference Name: InfusionLogic.UT
Type: .NET
Version: 1.0.0.0
Copy Local: False
Specific Version: False
Path: C:\calc{list}\development 001\List Objects\InfusionLogic.LO\bin\InfusionLogic.UT.dll

Reference Path:
C:\calc{List}\Development 001\List Objects\InfusionLogic.LO\bin\

SOLUTION
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
Avatar of rcl58

ASKER

Setting the Copy Local to True had no effect. However, if I rebuild up the line to my final app in one instance of VS then it rebuilds fine! Have you or anyone else experienced problems with multiple instances of VS being open at the same time?

It is really inconvenient to load and reload projects over and over just to debug and rebuild. Any suggestions?

Bob
If you build each project separately, what order do you need to build in to get the overall solution to rebuild?

Bob
Avatar of rcl58

ASKER

I can start anywhere. For example: I change some code at level 4 then rebuild from 4 to 1 (my final app). It works fine. But if I have instances of VS for 4 to 1 open then usually #3 cant find the files it needs from #4.

Additionally, when I go to 3,2, etc. I notice (because my reference screen was open) that certain files are highlighted in the reference tab. Both 3,2 have highlights. So it looks like when I do the #4 rebuild all the VS instances up the line automatically have detected some sort of change.

Thanks again for your help.
Bob
Bob,

What .NET version are you using?

Bob
Avatar of rcl58

ASKER

I am upgrading my app from 1.1 to 2.0.
The about window say 2.0.50727
1) Is this a web solution or a WinForms client solution?

2) Is there one overarching Solution, or just the 3 single solutions?

Bob
Avatar of rcl58

ASKER

It is a WinForms solution. I start with Rocky Lhotka's "Business Objects" and build up from there with three other solutions each of which uses various classes below. The final top solution is the UI and handles all the forms.

Bob
SOLUTION
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
Avatar of rcl58

ASKER

Bob,
It probably is feasible. I was trying to develop them separately so at some point in the future I could have addition programmers working on the various aspects without needing access to the entire application.

Short of combining them into one solution do you know of a way to just build the entire solution set from the top solution? Maybe a command line build/batch file? What I really need is a good book on the entire subject! I have never done a command line build and would love to find a book that lays out all my options.

Bob
SOLUTION
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
Avatar of rcl58

ASKER

The problem has not been solved but thanks to those with suggestions.