What is the purpose of the assemblies section?
The <assemblies>
element in an ASP.NET application defines the assemblies that are used during compilation of an application; the assemblies on this list should be the ones you depend on and are thus required for your code to compile.
This section is necessary because ASP.NET will compile the application the first time a user requests a resource from your application. During this compilation process, ASP.NET needs to link in your dependencies in order to compile your application. By default, ASP.NET will scan the bin
folder and the .NET framework installation directory to find the assemblies specified.
Can the references be deleted in the Web.config?
It depends; if you're not using the dependency, sure, you can delete it. Most likely, you'll be able to remove some of them, but not all of them.
To find out which dependencies you can remove, do the following:
- Remove the reference from your project.
- Compile your application.
- If your application still compiles, go ahead and remove it from your Web.config; if it doesn't, don't remove it.
Hope this gives you enough info to get moving in the right direction.