App_Browsers definition file for Edge
<p>I'm trying to write a browser definition file for Edge in Asp.Net to avoid having it identified as "Chrome 46".</p>

<p>I've created the following <code>Edge.browser</code> file in the <code>App_Browsers</code> folder:</p>

<pre><code>&lt;browsers&gt;
  &lt;!--Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586--&gt;      
  &lt;browser id="Edge" parentID="Chrome"&gt;
    &lt;identification&gt;
      &lt;userAgent match="Edge" /&gt;
    &lt;/identification&gt;
    &lt;capture&gt;
      &lt;userAgent match="Edge/(?'version'(?'major'\d+)(\.(?'minor'\d+)?))" /&gt;
    &lt;/capture&gt;
    &lt;capabilities&gt;
      &lt;capability name="browser" value="Edge" /&gt;
      &lt;capability name="version" value="${version}" /&gt;
      &lt;capability name="majorVersion" value="${major}" /&gt;
      &lt;capability name="minorVersion" value="${minor}" /&gt;
    &lt;/capabilities&gt;
  &lt;/browser&gt;
&lt;/browsers&gt;
</code></pre>

<p>This matches Edge very well, but then if make another request to the website with Chrome, the browser also gets matched as Edge :S</p>

<p>What am I doing wrong?</p>