Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010 Publish Profiles -- Where are they stored?

We have set up a few Publish Profiles that are used to deploy web apps to various servers, and it all works great with 1-click deployment.

However, we find that even though the entire solution is under source control (SVN), the profiles do not seem to be carried over, so we need to re-create the profiles on each developer's machine manually.

It seems that since the profiles exist only for the solution currently loaded, that they must be stored in the solution files somewhere. But they do not carry over when someone else does an update to pull down the code.

I'm guessing that whatever file they are in is one that we aren't covering in the source control project, but I haven't been able to figure out which one.

Someone must know where the Publish Profiles are stored. Is there any way to copy them from machine-to-machine so that we don't have to retype them for each developer?

like image 704
Jeff S Avatar asked May 27 '10 01:05

Jeff S


People also ask

Where does Visual Studio save publish profiles?

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

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

Where is publish in Visual Studio?

Right-click on the project (not the solution) in Solution Explorer and select Publish. In the Publish tab, select Publish. Visual Studio writes the files that comprise your application to the local file system. The Publish tab now shows a single profile, FolderProfile.


1 Answers

The file name is actually going to 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. That will get it into source control.

One thing to be careful of: VS won't auto-check-out this file if you attempt to change and save the profile settings, but it won't throw an error either. There's a warning in one of the Output windows about it, if you pay attention; otherwise it will just look like it's ignoring your changes.

like image 94
Michael Edenfield Avatar answered Sep 22 '22 16:09

Michael Edenfield