Tutorials » AspNet tutorials »

ASP.NET 2.0 and Bin folder


This article explains what happened to the good old "Bin" folder in ASP.NET 2.0


What happened to Bin folder in ASP.NET 2.0



If you have worked with ASP.NET 1.0 or 1.1, this may be bit confusing for you.

Older versions of ASP.NET projects used to compile all the source files into an assembly and put them into a folder called "Bin". When you build a web application project using Visual Studio 2002 or Visual Studio 2003, it used to compile all files into a DLL and copy them to the special folder called "Bin".

From ASP.NET 2.0 onwards, there won't be any "bin" folder created. Instead, source files will be compiled dynamically when a request is made for that particular piece of code. However, when you "build" the solution using VWD, it verifies each file for compilation errors to avoid any compilation error during run time.

Where does the referenced assemblies go ?



If you have worked with .NET projects before, you must know that a web application may refer to several other class libraries and assemblies. When you add a reference to another DLL using Visual Studio, the DLL will be copied to the Bin folder automatically.

This concept still exists. If you add a reference to another DLL using VWD, the "Bin" folder will be automatically created under the web site folder and DLL will be copied to the Bin folder.



Next Chapter: Solution Explorer
Previous Chapter: The "Build" process
More Chapters: ASP.NET Tutorials
More Tutorials: Tutorial Index



Top Contributors
Today
    Last 7 Daysmore...

    Awards & Gifts

    Online Members

    Vishwa
    More...
     
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India