title: NuGet Package transform a config transform file
body: <p>Is there a way to make a NuGet package transform a config transform file? For example, when I want my NuGet package to edit a <code>web.config</code> file, I create a <code>web.config.install.xdt</code> file. But what if I want my NuGet package to edit a <code>web.config.debug</code> file? </p>
  
  <p>I tried making a <code>web.config.debug.install.xdt</code> file, but ran into one issue: I cannnot get the transformation to insert attributes that are themselves attributes of xdt transformation. Something like:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration  xmlns:xdt1="http://schemas.microsoft.com/XML-Document-Transform"&gt;
  
    &lt;system.serviceModel &gt;
      &lt;client xdt1:Transform="Insert"&gt;
        &lt;endpoint address="http://blah.blah" binding="basicHttpBinding" contract="Test.Contract" 
                  name="TestWs" xdt:Transform="Replace" xdt:Locator="Match(name)"/&gt;
      &lt;/client&gt;
    &lt;/system.serviceModel&gt;
  
  &lt;/configuration&gt;
  </code></pre>
  
  <p>(I tried changing the namespace of xdt, but that didn't help either.)</p>