Search code examples
.netweb-applicationsdllclass-librarybin

Where to store component DLLs?


I'm currently migrating a VB.NET website to a VB.NET Web Application. Previously I would store all the component DLLs (3rd party class libraries) in the bin folder and they would get compiled at run time. I've manually added the references to the DLLs in my new application, however is the bin folder the ideal place to store these additional DLLs? Is this considered best practice and will it interfere with the DLL generated by the application when I create a new build?

Sorry if this is quite a basic question, I'm new to the concept of Web Apps in Visual Studio.


Solution

  • No it will not interfere with the dlls generated by the application.

    If these are dlls you use in a lot of your applications you may consider registering them in the GAC.

    Having them in the bin makes for easy deployment (by simply copying the web app folder) and this may be your only option if you are in a shared hosting environment where you don't have access to install your dlls in the GAC