How can I organize my dll in several folders in the bin directory in ASP.NET?

How can I take several dlls in my bin folder so that the ASP.NET application organizes them in separate folders and leaves them in the bin directory so that they are still easily accessible for the application, as if they were in the root of the bin? I want to reduce the monstrous list of DLLs and group them into folders related to their main purpose.

+4
source share
4 answers

You can configure the application for other directories to download assemblies using the web.config file and specifying the <probing> element. I don’t understand if this works now with projects such as websites, as it was several years ago. However, it must work with projects such as a web application.

 <configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <probing privatePath="bin\subdir"/> </assemblyBinding> </runtime> <system.web> .... .... </system.web> </configuration> 
+4
source

Do not do this. Even if it works, it will not be understood by anyone else.

If you are concerned about the number of assemblies in the bin folder, then do not look there.

+1
source

An article was published Moving Code Behind Assemblies / DLLs to a Different Folder Than / BIN with ASP.NET 1.1

I believe an approach using assemblyBinding Element for the runtime might work for .NET 2.0

But I agree that this is not recommended ...

+1
source

Are you trying to organize the DLLs generated by the application after compilation, or the third-party and external dlls used by your application?

If this is the last, and you do not, you can organize them into any hierarchy that you select outside the application (but inside the solution). You can then reference the DLL.

Trying to organize an asp.net collector generated by generated files is like swimming upstream.

0
source

All Articles