VS2010 Publish Profiles - Where are They Stored?

We have created several publishing profiles that are used to deploy web applications on different servers, and all this works great when deployed with one click.

However, w discovers that although the entire solution is under source control (svn), the profiles do not seem to be migrated, so we need to re-create the profiles on each development machine manually.

It seems that since the profiles exist only for the solution currently loaded, they should be stored in the solution files somewhere, but they are not migrated when someone else performs the update to pull the code.

I assume that some of the files in which they are located is something that we are not closing in the version control project, but I could not figure out which one.

Someone should know where publication profiles are stored - is there a way to copy them from machine to machine so that we do not need to retype them for each developer?

+44
visual-studio visual-studio-2010 profile publish
May 27 '10 at 1:28
source share
4 answers

The file name will actually be $ (ProjectName) .Publish.xml and should be in the same folder as your .csproj file. If you enable the "Show all files" option in Solution Explorer, it will appear, and you can include it in your project from there. This will provide him with source control.

Caution: VS will not automatically check this file if you try to change and save the profile settings, but it will also not cause an error. There is a warning in one of the output windows about this, if you pay attention; otherwise, it will look as if it is ignoring your changes.

+37
Apr 29 2018-11-21T00:
source share

In the interest of preserving SO so far, starting from VS2012 (or VS2010 with the Azure SDK 1.7+ ), profile publishing is now saved in Properties\PublishProfiles\$(ProfileName).pubxml for the Web Application and App_Data\PublishProfiles\$(ProfileName).pubxml for websites.

They are also MSBuild files and are expected to define the properties as documented. How to change the deployment settings in publication files (.pubxml)

+17
Dec 12 '12 at 22:17
source share

The reason I ran into this problem was because of the .user files: I noticed that the settings were saved in Properties/PublishProfiles/$(ProfileName).pubxml , but the actual credentials needed for the deployment were saved in .user files, that have been excluded from the original control.

0
Oct 07 '13 at 13:49 on
source share

In my installation of Visual Studio 2010 for a website project, these files are located in the App_Date \ PublishProfiles folder.

0
Apr 11 '14 at 16:08
source share



All Articles