469,592 Members | 1,927 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,592 developers. It's quick & easy.

Problem when rebuilding solution with several projects - not all references are updated...

My Solution has three different projects: GUI, Api, Match.
Project GUI includes a reference to Match.dll and Project Match includes a
reference to Api.dll . Project Api doesn't include any references.
Technically, GUI calls on classes/methods in Match, and Match calls on
classes/methods in Api. Api doesn't include user-defined references.

With Configuration Manager in "Release" (and all the projects in Release as
well), when I rebuild the whole solution (after modifying all three of them)
and look in the ..\GUI\bin\Release folder (GUI is the startup project), I
noticed that the only files updated were GUI.exe and Match.dll . Api.DLL
remains with the dame date so it doesn't include the last changes. The only
way I can update Api.dll is by deleting the reference to it in Match.dll and
adding it again with the updated dll.

Why aren't all the references updated when I do a full solution build? Will
I have to delete/add Api.dll manually everytime I update it? I assumed the
Dll's in the startup project path were updated.

Thanks.

Amos
Nov 16 '05 #1
1 1917
I take it you are using Visual Studio. Make sure that when you add
references to the other projects, you select the Project tab in the Add
Referenece window. This way, VS will build the projects in the correct
order. If you just reference the assembly and not the project, VS may not
build the projects in the correct order, that is, it may choose to build GUI
first (using the previously build assemblies) and then build the other
assemblies next.

Also, if that doesn't work, try selecting "Rebuild Solution" from the Build
menu. I think this causes a complete rebuild.

"Amos" <am***@earthlink.net> wrote in message
news:ua**************@tk2msftngp13.phx.gbl...
My Solution has three different projects: GUI, Api, Match.
Project GUI includes a reference to Match.dll and Project Match includes a
reference to Api.dll . Project Api doesn't include any references.
Technically, GUI calls on classes/methods in Match, and Match calls on
classes/methods in Api. Api doesn't include user-defined references.

With Configuration Manager in "Release" (and all the projects in Release as well), when I rebuild the whole solution (after modifying all three of them) and look in the ..\GUI\bin\Release folder (GUI is the startup project), I
noticed that the only files updated were GUI.exe and Match.dll . Api.DLL
remains with the dame date so it doesn't include the last changes. The only way I can update Api.dll is by deleting the reference to it in Match.dll and adding it again with the updated dll.

Why aren't all the references updated when I do a full solution build? Will I have to delete/add Api.dll manually everytime I update it? I assumed the
Dll's in the startup project path were updated.

Thanks.

Amos

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

15 posts views Thread by Ken Allen | last post: by
2 posts views Thread by Joerg M. Colberg | last post: by
13 posts views Thread by Lee Newson | last post: by
2 posts views Thread by mkd1919 | last post: by
13 posts views Thread by Rafe | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.