And creates dlls for all code behind files.
views:
296answers:
5Convert your 'Web Site' project to a 'Web Application Project'.
You will be able to pre-compile the site (Publish the site in Visual Studio verbage) which will leave no code-behind files...only compiled dlls.
You do not need to deploy the .cs files. If you use the Publish command (Build -> Publish) you will get a folder with the files that need to go to the web server.
Publish your asp.net application instead of copying all files.
You can access publish menu with ALT + B + H shortcut or under Build menu you can find Publish Wb Site menu item.
When you publish your website there is a dll out there check the published folder, It will be soemething like app_code.dll or something like that.
I'd recommend considering Web Deployment Projects. In addition to giving you pre-compiled output, you get a host of configuration and deployment options, as well as control over how your final output assembly is named.