Search code examples
asp.netweb-deployment-projectwdproj

what to copy to production server when an update is made in a web application development environment


I have a web application built in Asp.net framework 3.5 (.Net 2008), and I use a Web Deployment Project (WDP) to compile it.

I'd like to know, for instance if I made some changes to a code behind file (.aspx.vb), what files do I need to upload to the production server in order to get the new changes updated there. Same thing in the case of .aspx files.

I know that I can copy the whole web application directory to the production server, but, can I copy just the updated files?

any guide will be appreciated.


Solution

  • As you know a class is a consolidated list of three files in case of Web Application

    1. ASPX
    2. Designer
    3. Code Behind

    Case - 1 Changes made in one file(.aspx/.cs/ .designer.cs)

    Suppose in your project you have 50 - 100 files and you made change in single file and it's impact caused in all the above three mentioned files. In that case you need not to upload all published files on Deployment Server. You need to replace the rebuild files for following.

    1. Web Application DLL file
    2. ASPX Page

    Case - 2 When changes made in Script files like .css or .Js

    1. In this case you need not to replace the Web Application Dll
    2. Replace only .css or .js files.

    Hope this may help you in your deployment process and may save you lot of time