Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I prevent Visual Studio 2015 from launching a browser after publishing an asp.net application?

I am working on a site with a publishing profile that pushes the site to a remote host. After publishing I get a new browser window that navigates to the newly published site. This is ok in most circumstances but I am in a situation where I can't allow that last step to occur, I simply want to tell visual studio not to show me the website after publishing. I've checked all the publishing settings that I can find but haven't found any option to control this. Anyone have any ideas?

like image 607
Necromancer Avatar asked Aug 24 '15 16:08

Necromancer


People also ask

How do I stop Visual Studio from opening a new browser window?

Go to Project Properties > Debug > Uncheck "Launch Browser" > Save.

How do I change Publish settings in Visual Studio?

On the computer where you have the ASP.NET project open in Visual Studio, right-click the project in Solution Explorer, and choose Publish. If you have previously configured any publishing profiles, the Publish pane appears. Click New or Create new profile.

How do I stop publishing in Visual Studio?

As a work-around, you can cancel the active publish by clicking on Build-> Cancel build.

How do I Publish a Visual Studio 2015 profile?

Create a publish profile in Visual Studio by choosing one of the following paths: Right-click the project in Solution Explorer and select Publish. Select Publish {PROJECT NAME} from the Build menu.


1 Answers

Update for Visual Studio 2019:

In the "Publish" page, look for "Configuration". On the right side, click the Pencil Icon.

In the next dialog, open the "Connection" tab, and empty the field "Destination URL".

like image 118
askolotl Avatar answered Sep 27 '22 18:09

askolotl