title: How to add config transformations for a custom config file in Visual Studio?
body: <p>The project I am working on involves reading a lot of service endpoints (url) from a config file. Since the list would be quite large I decided to keep them in a custom config file to keep my web.config clean and small. I included the custom section to my web as below:</p>
  
  <pre><code>&lt;mySection configSource="myConfig.config" /&gt;
  </code></pre>
  
  <p>I works perfectly fine.</p>
  
  <p>But the problem of transformation appears during the deployment of the project to different environments. I have three web.config files:</p>
  
  <p>Web.config</p>
  
  <p>Web.Uat.config</p>
  
  <p>Web.Release.config</p>
  
  <p>While the transformation web.config works, the transformations for custom config files fails at deployment. </p>
  
  <p>Is there an way I can transform the custom config file during deployment?</p>