Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to add publishing profile to a new sln in vs2012?

Tags:

I have read the publishing profiles have replaced WDP

but I cannot find decent tutorial

how to add and modify pubxml file to my project

any help will be appreciated

like image 546
Elad Benda Avatar asked Nov 18 '12 15:11

Elad Benda


People also ask

Where are publish profiles saved?

Publish profile files are named <profilename>. pubxml and are located in the PublishProfiles folder. The PublishProfiles folder is under Properties in a C# web application project, under My Project in a VB web application project, or under App_Data in a web site project.

What is publish profile in MSBuild?

Publish uses profiles (. pubxml files) to allow for multiple project configurations and multiple publish targets for a single project. The contents of the profile are XML and based on MSBuild. The Publish profile keeps credentials in a separate, hidden by default file that doesn't get checked-in.


2 Answers

In order to create a new profile once you have already defined one, you have to open the "Publish" window (righ click on the project), click on the "Profile" tab and select the <New...> option from the drop-down list; this will create a new pubxml file (see screenshot).
It's a bit tricky to find and I wonder why they didn't put a "New" button on the "Manage profiles" window.

enter image description here

like image 84
StockBreak Avatar answered Oct 25 '22 05:10

StockBreak


When you right-click a project and select Publish, you get the Publish Web wizard. Using this to create a profile (you don't have to actually publish in order to create a profile) creates the .pubxml, and on the first step of the wizard you can use the Manage Profiles button to rename or delete profiles. Profiles are created in a PublishProfiles folder under Properties. See

http://msdn.microsoft.com/en-us/library/ff398069.aspx

like image 33
tdykstra Avatar answered Oct 25 '22 04:10

tdykstra