
Chapter 5: Creating and Building Projects | 131 |
Normally, a full rebuild ensures that you have the most
A more common use of clean is to remove outputs from the project to make it smaller. You might want to compress a project or solution and
Managing Dependencies and Build Order
A dependency describes to VS which other projects a given project depends on to operate properly. For the example in this chapter, the ProjectDemo project references ClassLibraryDemo and uses the code in ClassLibraryDemo. Therefore, ProjectDemo has a dependency on ClassLibraryDemo. VS adds this dependency automatically, which is good because when VS builds your solution, it will keep all projects
You can manually manage dependencies by
In the Project Dependencies window, you can select (from the
Project dependencies directly affect the build order of a project. If you recall from the previous discussion, projects that have dependencies upon them will be built before the depending projects. From the Project Dependencies window, shown in Figure