title: How to exclude migration folder from code coverage analyze result by runsettings file?
body: <p>I want exclude all migration classes from the code coverage analyze result. So I used the following code in <code>codecoverage.runsettings</code> file but code coverage analyze result is include migration namespace classes yet.</p>
  <p>The namespace of migration classes is <code>MySolution.Data.Migrations</code> and they are in the <code>Migrations</code> directory of the <code>MySolution.Data</code> project.</p>
  <p>Data Project &gt; <code>codecoverage.runsettings</code></p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;RunSettings&gt;
      &lt;DataCollectionRunSettings&gt;
          &lt;DataCollectors&gt;
              &lt;DataCollector friendlyName=&quot;Code Coverage&quot; uri=&quot;datacollector://Microsoft/CodeCoverage/2.0&quot; assemblyQualifiedName=&quot;Microsoft.VisualStudio.Coverage.DynamicCoverageDataCollector, Microsoft.VisualStudio.TraceCollector, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot;&gt;
                  &lt;Configuration&gt;
                      &lt;CodeCoverage&gt;
                            &lt;!-- configuration elements --&gt;
                            &lt;Functions&gt;
                                &lt;Exclude&gt;
                                    &lt;Function&gt;.*\.Data.Migrations\..**&lt;/Function&gt;
                                &lt;/Exclude&gt;
                            &lt;/Functions&gt;
                      &lt;/CodeCoverage&gt;
                  &lt;/Configuration&gt;
              &lt;/DataCollector&gt;
          &lt;/DataCollectors&gt;
      &lt;/DataCollectionRunSettings&gt;
  &lt;/RunSettings&gt;
  </code></pre>