The main purpose of publish dialog is provide a simplified way to take the file list which need to be published on your website. In this article I’m going to explain how to publish an MVC web application using the “publish” dialog provided in VS 2015.
Step 1: Open Publish Dialog.
You can open the publish dialog by “Right Click” on the project, then selecting “Publish” on the floating menu.

Step 2: Create Profile.
As a first step, you should create a profile before publishing. This is just one kind of grouping, say for example you can create multiple profile one for Azure and one for local. So when next time you open this dialog you can see the profiles and select from them.

I have selected “Custom” as “Publish Target” and given profile name “LocalPublish”.

Step 3: Select the Connection.
In this step, we need to tell where our published files are going to be. You can publish the files directly on your server also by selecting “Web Deploy” publish method or you can use FTP too.
Since I’m going to publish files in local file system, so I selected “File System”.
Step 4: Select Configuration and other settings.
In thpreceding step, you can choose “Configuration” mode and other settings like delete files before publishing in the specific folder, precompile, etc.

Step 5: Preview & Publish.
You are about to complete your publishing. Click Publish to start the publishing as in the following screenshot:

In the output window you can see the result of the publish.
Hope this post is useful who are all using the “Publish” option in Visual Studio 2015.
Happy Coding!


Priya NeelakandanPosted Mar 18, 2020, 5:14 AM EDT
So how can i execute the website?
Brian JacobPosted Dec 19, 2018, 5:15 AM EST
What additional steps are involved if you need to publish databases along with the code push?
Ravi BirlaPosted Oct 31, 2018, 8:21 PM EDT
Thanks very helpful
Mahesh SawPosted Jun 29, 2016, 4:10 AM EDT
Thank you..it's very help full for me...
Arul RPosted Oct 9, 2015, 6:33 AM EDT
Thanks for information
Saineshwar BageriPosted Sep 19, 2015, 9:07 PM EDT
nice one
Santhakumar MunuswamyPosted Sep 17, 2015, 6:30 AM EDT
Thanks for nice share
Humayun Kabir MamunPosted Sep 14, 2015, 10:48 PM EDT
Nice...
Pankaj Kumar ChoudharyTOP 100Posted Sep 14, 2015, 5:42 PM EDT
Thanks for Nice Information Sir..........
Mohammed IbrahimPosted Sep 14, 2015, 9:07 AM EDT
nice information
Francis SusaimichaelPosted Sep 14, 2015, 5:33 AM EDT
Happy to share :)
Nilesh JadavPosted Sep 14, 2015, 4:09 AM EDT
Nice Article
Harshad PansuriyaPosted Sep 14, 2015, 3:53 AM EDT
Nice One
Ajeet MishraPosted Sep 14, 2015, 3:41 AM EDT
nice
Raja TPosted Sep 14, 2015, 3:36 AM EDT
Good one, Thanks for sharing