title: Xamarin Android: network_security_config.xml for debug only
body: <p>I have a Xamarin.Android project (as a part of a Xamarin.Forms project) where I use network-security-config.xml to allow traffic to/from a test server using http.</p>
  
  <p>I wonder if there is a way to exclude this from release build.</p>
  
  <p>I found out two approaches, but none of them seem to apply to my situation:</p>
  
  <ul>
  <li><p>If I was using Android Studio, I could have two different files, in different folders, one for debug and one for release. I think this is not supported in Visual Studio/Xamarin.</p></li>
  <li><p>There is a directive in network_security_config.xml, "", but I think it only applies to CA certificates.</p></li>
  </ul>
  
  <p>Any clue?</p>
  
  <p>Thank you!</p>