Tuesday, May 12, 2020

Using parameters for different publish profiles in web deploy

We can create publishing profiles for a web application by right clicking on the project and choose publish action. This creates a .pubxml file inside properties node in solution explorer. A detailed explanation of this process can be found at


In this process it is a rather tricky task to replace connection strings for each publish profile. This can be done by using parameters.xml file. More information can be found at 





An easier way is now available through Azure DevOps tasks as explained at

No comments:

Regex obfuscate email

 Use this code in C# to obfuscate email using regex // Online C# Editor for free // Write, Edit and Run your C# code using C# Online Compile...