We help IT Professionals succeed at work.

Building Multi-Solution App

rcl58
rcl58 asked
on
210 Views
Last Modified: 2010-04-23
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

Comment
Watch Question

Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
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

Author

Commented:
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
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008

Commented:
In your AssemblyInfo.vb, are you using versions like 1.0.* or 1.0.0.0?

Bob

Author

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

Bob
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:

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\

CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
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
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008

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

Bob

Author

Commented:
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
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008

Commented:
Bob,

What .NET version are you using?

Bob

Author

Commented:
I am upgrading my app from 1.1 to 2.0.
The about window say 2.0.50727
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008

Commented:
1) Is this a web solution or a WinForms client solution?

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

Bob

Author

Commented:
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
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
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
Top Expert 2004
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

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

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.