Saturday, March 31, 2012

Where do assemblies go in ASP.Net 2.0

Ok. Im new to VS.net 2005. In previous versions, I was accustomed to seeing a bin folder in my web application that would contain all assemblies necessary to run my web site.

I dont see this folder being created. Can anyone tell me what happens to assemblies when you build an ASP.Net 2.0 web site in VS.Net?

Thanks!

Its been my experience so far that when you Publish your site, a /bin folder is created with the appropriate .dll in it. I have also started to create my own /bin directory for my projects and each time I Build, Visual Studio seems to update the .dll there (could be my imagination).

By default, the new framework compiles files on a page by page basis

on the first load, OR if you use the precompile option under the "publish" menu, the page's given partial class is compiled into a file and placed in the /bin/ directory as mentioned above

If you want the old "single dll" option, you need to install the Web Applications Projects add on, but keep in mind that the new way allows you to change one page (and more important, the page's code behind) without affecting any other page in the application.....

Scott Guthrie's blog in an excellent source on Web Application Projects
http://weblogs.asp.net/scottgu

0 comments:

Post a Comment