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:
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?
To edit a publish profile (. In Solution Explorer, double-click the file to open it. If the element you want to change is already in the PropertyGroup element, change its value; otherwise add the element to the PropertyGroup element. Save the file.
Import the publish settings in Visual Studio and deployClick New or Create new profile. Select the option to import a profile. In the Publish dialog box, click Import Profile. Navigate to the location of the publish settings file that you created in the previous section.
Create a publish profile in Visual Studio by choosing one of the following paths: Right-click the project in Solution Explorer and select Publish. Select Publish {PROJECT NAME} from the Build menu.
When publishing a console app, the option is a bit hidden away:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With