How to add config transformations for a custom config file in Visual Studio?

Visual Studio transforms only web.config files by default. If you need custom config file with transformation for DEV, UAT, PROD, etc environments, then try to Use custom extensions for Visual Studio like SlowCheetah – XML Transforms for Config transformation preview functionality. Add for the project from Nuget SlowCheetah to provide build in transformation. A little … Read more

How do I configure MSBuild to use a saved publishProfile for WebDeploy?

I’m sorry to tell you that the publish.xml file which VS2010 uses was not designed to be used in this way. In fact it was not even designed to be checked-in/shared with others. The logic for reading/writing those files are strictly contained inside Visual Studio and not available through MSBuild. So there is no straight … Read more

MSDeploy skip rules when using MSBuild PublishProfile with Visual Studio 2012

Edit: It turns out you are right: the skip directive is ignored when executed from Visual Studio. Fortunately, there’s a workaround. What you want is this: <!– Skip the deletion of any file within the ErrorLog directory –> <MsDeploySkipRules Include=”SkipErrorLogFolder1″> <SkipAction>Delete</SkipAction> <ObjectName>filePath</ObjectName> <AbsolutePath>ErrorLog</AbsolutePath> </MsDeploySkipRules> In addition, you need to prevent VS from using the UI-task … Read more