Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2012 - Database Project - setting a default profile for publish

Just wondering if anyone knows how to set a saved publish profile as the default i.e. profile that's automatically loaded when I select publish. I love the new profile approach but I'm a bit over having to reselect the same profile over and over while I'm developing.

like image 639
Rob Avatar asked Mar 22 '13 09:03

Rob


People also ask

How do I add a published profile to 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. Select the option to import a profile.

Where are Visual Studio Publish profiles stored?

The default location for $(MSBuildSDKsPath) (with Visual Studio 2019 Enterprise) is the %programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Sdks folder. Microsoft.


2 Answers

In VS2012 and up, you can set the Default Publish Profile by right-clicking on the .xml profile file and clicking the Set As Default Publish Profile option. It will then be auto-loaded when you click to Publish the project.

like image 64
John Washam Avatar answered Sep 22 '22 03:09

John Washam


So I've just discovered how to do this, right click on the specific .xml file (e.g. Debug.publish.xml) that you wish to publish and it is automatically loaded into the Publish panel.

Double clicking the XML file also works

The latest Visual Studio 2012 Updates also now include right click options for:

1 - Set as default
2 - Publish

like image 45
Rob Avatar answered Sep 22 '22 03:09

Rob