Visual Studio import .publishsettings for File System
Asked Answered
W

1

6

Where/How do you create a .publishsettings file, so you can import a common configuration for all of your local, test deployments?

I want to publish another site locally to my computer via Visual Studio to C:\Webs\TheSite. Every time I do this for a new site, I have to create a new custom profile and go through and click 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 only find instructions for Azure and FTP/WebDeploy:

Woolworth answered 14/8, 2014 at 16:17 Comment(0)
V
6

Surprisingly answer to this simple question is so hard to find. I wasted hours searching answer to this to save minutes in creating new profile. Well then I never knew it would take so much time.

The simple hack is to copy the "PublishProfiles" folder from previous project (from where you want to get publish profile) and paste it in present project in "MyProject" folder.

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

Then open the profile and edit it as you like.

Vallation answered 21/11, 2015 at 8:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.