Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is Visual Studio storing Publish Profiles?

I have a corrupted Publish profile.

I need to delete it. My other computer is fine, so I know it is local.

I have tried:

  1. Clean checkout of codebase from Git (so nothing is local in my code directories).

  2. Deleting C:/Users/<user>/AppData/Local/VisualStudio

  3. Deleting C:/Users/<user>/AppData/Roaming/VisualStudio
  4. Full text search of Profile Name 'MunicipalAgenda' through Registry
  5. Full Text search through machine.
  6. Creation of a new Windows User for Visual Studio Development.

Despite all of this, VS.NET is hanging onto that corrupted Publish profile.

Honestly I am at wits' end, and my next drastic step is to do a fresh reinstall of Windows 10. Please help before it comes to that!!!

enter image description here

like image 314
Philip Tenn Avatar asked Jul 01 '17 02:07

Philip Tenn


People also ask

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.

How do I change publish settings in Visual Studio 2019?

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.

How do I change publish settings in Visual Studio 2017?

pubxml files and Visual Studio 2017 shows a list of file names in Publish toolbar. To change name of publish profile, you should change file name and then unload and reload project. Here are the steps to rename publish profile: Go to Solution Explorer → Project → Properties → PublishProfiles.


2 Answers

Normally any publish profile store in particular project.

For that you have to look at following location.

  1. Go to that project.
  2. Project has special folder call Properties
  3. Inside that there is a folder called PublishProfiles ( Something similar)
like image 137
dotnetstep Avatar answered Sep 20 '22 09:09

dotnetstep


I also had some difficulty in getting my profile deletions to stick ... Visual Studio (2017) doesn't seem to be able to do it from Solution Explorer.

My latest attempt is to go to Source Control Explorer, open up the /Properties/PublishProfiles folder, and delete and commit the unwanted profiles from there. So far so good :)

like image 24
John K Avatar answered Sep 19 '22 09:09

John K