Are both project dependencies and link-to-binary available in the same VS2008 solution?

In Visual Studio 2008, I have a C # application that depends on several other projects. I want to deploy to clients: 1) binaries only - I'm using an installer project for this 2) but top-level app as source (for client integration purposes)

For 1) I need an application project to have dependencies on other projects For 2) I need the same application project to reference binaries from other projects.

How do I manage this in VS2008?

Joop

+2


source to share


1 answer


You can change the "references" of your top-level application to binary references: simply remove the references and add them again by viewing the compiled assembly, rather than selecting the project in the same solution.

The same project file can now be used in two solutions:



  • app-fullbuild.sln

    can build everything at once.
  • app-minimal.sln

    only builds the top-level application. Obviously this requires that the dependencies are already built and available at some expected location. This is easier to achieve if all projects were built on the same output folder.

The only thing that was done for app-fullbuild.sln

, visual studio will no longer automatically know that dependencies must be created first. This can be fixed by right-clicking the application project in the solution and editing the "project dependencies". Fortunately, these "additional manual dependencies" between projects are saved in the solution file, not in the project file.

0


source







All Articles