How can I rename Publish Profile in Visual Studio 2017?

Viewed 7926

In Visual Studio 2017 when you create a custom Publish Profile, you don't have an option to set name of the profile and it creates profiles with default names like CustomProfile and CustomProfile1 and show them in Publish toolbar like this:

enter image description here

In previous versions of Visual Studio, when you create a publish profile, there is a dialog asking for profile name. How can I rename publish profile in Visual Studio 2017?

3 Answers

When publishing a console app, the option is a bit hidden away:

enter image description here

Just in case you can't find the PublishProfiles folder, in my web project (VS 2017 / 15.2) it is under My Project -> PublishProfiles.

Just open a file explorer window onto it and rename the offending item.

Related