What is the difference between Publish methods provided in the Visual Studio?

tRuEsatm picture tRuEsatm · Mar 7, 2017 · Viewed 9.7k times · Source

When I click on the Publish option following options come: Publish Methods

What is the significance of each method?

Answer

Tomasz Juszczak picture Tomasz Juszczak · Mar 8, 2017
  1. Web Deploy - If you have IIS on server machine running and configured to receive Web Deploy requests, it will send all requested by IIS files. IIS will immediately start running new web page.
  2. Web Deploy Package - If you have IIS on server machine running and configured to receive a Web Deploy Package it will pack your whole web page, and will upload them to server machine. IIS will immediately start running new web page.
  3. FTP will upload files to FTP server (can be any OS that handles FTP), but be aware that this is NOT safe and whole upload process can be captured and compromised.
  4. File system will deploy all items required for launching a web service, with any method supported by current project configuration, into provided directory on your machine.