0

Does anyone know if it's possible for multiple projects to reference/share the same bin folder? Thanks.

Hoang
  • 333
  • 1
  • 5
  • 9

3 Answers3

1

As long as all of the DLLs are in the same "bin" folder, multiple apps can be run from within the same IIS application. To IIS, this just looks like a single application because there is a single "bin" folder.

This probably shouldn't be done unless you have a good reason, though. You lose process isolation and make the deployments harder.

David
  • 34,223
  • 3
  • 62
  • 80
0

I normally have a Library folder in my project root then link all of the projects in the solution to the same dll via the Browse tab under 'Add Resource'.

James O'Sullivan
  • 498
  • 1
  • 4
  • 12
0

You may want to think about what you actually want to do here. Say you manage to set this up and you wind up with three projects, all referencing assembly B in one place.

You have to make a 'breaking' update to assembly B to satisfy a requirement for one of those projects, but you don't have time to update the other two to suit. What do you do in this situation?

Paddy
  • 33,309
  • 15
  • 79
  • 114
  • All projects will have the same requirements. That is why we want to use the same bin folder to save space. – Hoang Jul 16 '10 at 15:31
  • @Hoang - Why three different projects then? Why not a single project, multiple virtual directories pointing at the same files and, I imagine, some way of skinning the front end according to which URL you come in on. – Paddy Jul 16 '10 at 15:45
  • we are looking to add sub-sites programatically and the cms tool we are using only allows adding a new project which then creates new files and folders for each project (bin folder is big enough that it will become a problem once it gets big enough). Not sure how to go about creating virtual directory programmatically and how to refer to the project. Thanks. – Hoang Jul 16 '10 at 16:11