The mystery of the disappearing Publish Profiles
Jan 26, 2024
For some reason my Visual Studio wasn’t showing an existing profile that someone else had created on the Project | Publish menu. This was despite the file showing in Solution Explorer as being part of the project.
As I was using dotnet I could have used the command line and that would likely have worked e.g.
dotnet publish -p:PublishProfile=MyProfile
However what actually worked for me was to simply delete the bin and obj folders for the project concerned.