Multiple /bin directories?

  • Thread starter Thread starter Shawn B.
  • Start date Start date
S

Shawn B.

By default a web application gets its assemblies from /bin. Is it possible
to have a /bin2 as well? I'd like to overlay a new app project into a
subfolder of the root and have it use another /bin directory... the reason
is some files in the /bin are snk'd and the in "/bin2" they aren't... and it
is way too difficult at this point in development to rebuild everything with
the correct dependancy chain.


Thanks,
Shawn
 
Shawn said:
By default a web application gets its assemblies from /bin. Is it possible
to have a /bin2 as well? I'd like to overlay a new app project into a
subfolder of the root and have it use another /bin directory... the reason
is some files in the /bin are snk'd and the in "/bin2" they aren't... and it
is way too difficult at this point in development to rebuild everything with
the correct dependancy chain.


Thanks,
Shawn

That's not really possible, as this is defined by IIS when creating the
asp.net environment. You can try, although it's not tested nor
documented nor accepted and it might break at some point and asp will
take your first born child, the following:

AppDomain.CurrentDomain.AppendPrivatePath("bin2");

But to be honest, what's the exact reason why you want the system to
probe into two directories?
 
Back
Top