Home / Software / Tips and Tricks / Why Visual studio 2012 is publishing c# files on web deployment?

Why Visual studio 2012 is publishing c# files on web deployment?

Category: Visual Studio
view more software Tips and Tricks
Updated:  03/31/2016 10:03 AM
Author:  Shiju Mathews

Status:    Resolved.


Depending on the setting on Visual Studio, it will publish code behind files on deployment. To set up the options.

1. Right click on the project that you are trying to publish.
2. Publish web wizard opens.
3. Select the profile.
4. Click on Setting tab.
5. Expand File publish option by clicking on the test. 6. Check the option "Exclude files from the App_Data folder.