tags:

views:

296

answers:

5

And creates dlls for all code behind files.

+6  A: 

Convert 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.

Justin Niessner
The best way <3
Spencer Ruport
+3  A: 

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.

Fredrik Mörk
+1  A: 

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.

Canavar
+1  A: 

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.

Broken Link
A: 

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.

ProKiner