Import into Visual Studio.publishsettings for the file system

Where / How do you create a .publishsettings file .publishsettings that you can import the general configuration for all local test deployments?

I want to publish another site locally on my computer using Visual Studio before C:\Webs\TheSite . Every time I do this for a new site, I need to create a new custom profile and go through all the checkboxes, etc.

I would rather start by importing a pre-configured .publishsettings file and just change TheSite in the destination path.

However, I can find instructions for Azure and FTP / WebDeploy:

+5
source share
1 answer

It is amazing to answer this simple question, so hard to find. I spent a lot of time finding the answer to this question in order to save minutes when creating a new profile. Well, then I never knew that it would take so long.

A simple hack is to copy the "PublishProfiles" folder from the previous project (where do you want to get the publication profile from) and paste it into the current project in the "MyProject" folder.

If you already have the "PublishProfiles" folder in the current project, then copy only the corresponding xxx.pubxml and xxx.pubxml files, user files from the previous project.

Then open the profile and edit it as you like.

+5
source

Source: https://habr.com/ru/post/1200345/