Well, it depends on what you mean by "copy":
With Publishing , you have options to pre-compile all or part of your application. You can publish to a local folder in your file system (instead of the target / host), and then copy the updated file (only). If you do the “code behind” (C # / vb code), it means that you most likely will need to “copy” / overwrite the dlls . It is clear that if you make changes to the content (html / razor / script / etc changes), you will also need to copy and overwrite them.
If you are new to deployment, you can simply copy / overwrite "everything", which is the safest way. Once you get more experience, you will “know” what assets you need to update (one or more dlls and / or content code, not “all”). There is no magic in this, usually just a question about the timestamp of the dll / file after you use published (locally) or rebuild your web application.
I would recommend doing local publish so that you can see what is really needed on your server. Files published to your local file system / folder must be on your host / server. This will allow you to visualize and remove any "secret" for Publishing :
- you will see what is actually needed (on your server) and what is not
- You will see a timesstamps file that helps you find out which files were actually modified, and those that were not (and therefore do not need to be updated).
- After you receive it, you do not need to “copy” / ftp “everything” and just update files that have actually been changed (only).
So, “copy” may mean higher, or if you say that you just copy all of your development code (raw (vb/cs)html/cs/vb ) to your host, it means that your site will be dynamically compiled , as each resource is needed / requested (nothing is pre-compiled ). It's also “easy”, but you lose pre-compilation , which means there is a delay when each of your web pages is requested / needed (ASP.net needs to be dynamically compiled). In addition, you also host the source code on the server. This may not mean much depending on your situation, but this is another thing to consider.
Here is more information about precompilation and options .
source share