c# - Difference in referencing an assembly in web.config and project reference root? -


I am creating this project and I have an external DLL. I want to add a reference to the root reference folder. I have not tried it wrong though. But there is a clear answer to this question on the Internet that let me down the web. In the configured assembly file, reference must be given to DLL.

I want to know why we need to do this?

What is the difference between the two methods?

the web Confidential section

Assemblies define a collection of element assembly names, which are used during the compilation of an asp.net application.

Generally, there is no project file to store the location of contexts using the Assembly Elements Web Site used in Web site projects. Project references do not apply to a web site Because there is no appropriate project file to store them, so the web. All referenced assemblies must be stored in the config. Something interesting, although not directly related, you can use both assembly elements and project references in the discussion web application project.

Keeping a reference in the element of assemblies means that you do not have to include the registrar @ at the top of any .aspx pages that use the namespace to discuss more about it.


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -