You can publish ASP.NET Web application projects using Visual Studio or Visual Web Developer Express Edition. When you publish an ASP.NET Web application project, Visual Studio or Visual Web Developer Express Edition compiles the Web application files into a single assembly and then copies the compiled assembly to a specified location. Web application projects share the configuration settings and behavior that are used for standard Visual Studio 2008 class-library projects. You can publish the Web application to a local or shared folder, to an FTP site, or to a Web site that you access by using a URL.
The Publish Web dialog box, which you can access from the Visual Studio or Visual Web Developer Express Edition Build menu, enables you to build and publish Web applications. When you publish the site, you can remove source code from the site. This provides a measure of protection for your intellectual property and makes it more difficult for others to access the source code of your site. For information about what occurs to files during precompilation, see http://msdn.microsoft.com/en-us/library/e22s60h9.aspx.
To publish a Web application project
-
In the Build menu, click Publish ProjectName.
The Publish Web dialog box is displayed.
-
Click the ellipsis button (…) to browse to the location that you want to publish the Web application project to.
-
Select the Replace matching files with local copies check box or the Delete all existing files prior to publish check box.
-
Select how you want to copy the Web application project files to the new location by using Only files needed to run this application, All project files, or All files in the source project folder.
You can include files from the App_Data folder by selecting the corresponding check box.
-
Click OK to publish the Web application project.
In the task bar, Publish succeeded is displayed when publishing has finished.
-
Make any configuration changes that are required for the Web application at the target location.
For more information, see http://msdn.microsoft.com/en-us/library/cdt9aht6.aspx.
-
http://msdn.microsoft.com/en-us/library/aa983453.aspx