Compiling the codes
-
I am not sure if there is an easy way to compile the codes. I have created 1 exe and 4 dlls. The exe relies (depends) on 4 dlls ('a', 'b', 'c', 'd'). Illustration is as shown below:
exe -> 'a' -> 'c' -> 'd'
-> 'b' ----^The 'd' dll is the lowest level. The 'd' is referenced in 'c' dll. and so on. Also that 'a' and 'b' dlls are referenced in exe. Now when making changes in 'c' dll, I would compile the exe but the 'c' dll remains previous version, not updated when compiling the exe. I would have to compile each dlls ('a', and 'b') then the exe so that the updated 'c' dll is passed over to the exe. Now for the question is there the easy way to compile those dlls at once? Thanks! : Forgot to add that I'm using Visual Studio 2010
-
I am not sure if there is an easy way to compile the codes. I have created 1 exe and 4 dlls. The exe relies (depends) on 4 dlls ('a', 'b', 'c', 'd'). Illustration is as shown below:
exe -> 'a' -> 'c' -> 'd'
-> 'b' ----^The 'd' dll is the lowest level. The 'd' is referenced in 'c' dll. and so on. Also that 'a' and 'b' dlls are referenced in exe. Now when making changes in 'c' dll, I would compile the exe but the 'c' dll remains previous version, not updated when compiling the exe. I would have to compile each dlls ('a', and 'b') then the exe so that the updated 'c' dll is passed over to the exe. Now for the question is there the easy way to compile those dlls at once? Thanks! : Forgot to add that I'm using Visual Studio 2010
-
I am not sure if there is an easy way to compile the codes. I have created 1 exe and 4 dlls. The exe relies (depends) on 4 dlls ('a', 'b', 'c', 'd'). Illustration is as shown below:
exe -> 'a' -> 'c' -> 'd'
-> 'b' ----^The 'd' dll is the lowest level. The 'd' is referenced in 'c' dll. and so on. Also that 'a' and 'b' dlls are referenced in exe. Now when making changes in 'c' dll, I would compile the exe but the 'c' dll remains previous version, not updated when compiling the exe. I would have to compile each dlls ('a', and 'b') then the exe so that the updated 'c' dll is passed over to the exe. Now for the question is there the easy way to compile those dlls at once? Thanks! : Forgot to add that I'm using Visual Studio 2010
If you're using Visual Studio, you can configure the project dependencies. Right-click the solution file in Solution Explorer, and choose Properties. Then go to the "Project Dependencies" set of options. Set the dependencies so that
a
depends uponb
, andb
depends uponc
, and so forth.The difficult we do right away... ...the impossible takes slightly longer.
-
If you right click on a project in the solution explorer, there's a menu item "Project Dependencies[^]". There you can set which projects a project depends on, and a right compilation order will be figured out based on that.
-
If you right click on a project in the solution explorer, there's a menu item "Project Dependencies[^]". There you can set which projects a project depends on, and a right compilation order will be figured out based on that.