title: Run MS tests from the build folder on TeamCity server
body: <p>I'm trying to run MS tests from the build folder on the TeamCity. </p>
  
  <p>Main reason is that our application uses several configuration files (csv files with 'Copy to Output Directory' option set), that are loaded from its run folder. Those are not test files, but required application files, so using MSTest deploy attribute is not an option.</p>
  
  <p>Locally, R# and VS2013 run tests correctly, on the TeamCity (8.1) I get an error - csv files are missing.</p>
  
  <p>I tried using .runsettings file ("Build Step configuration/MSTest run configuration file") to specify  <code>&lt;DeploymentEnabled&gt;False&lt;/DeploymentEnabled&gt;</code> however MSTest (12.0.21005.1) returns this error:</p>
  
  <blockquote>
    <p>"The file 'C:\TeamCity\buildAgent\work\d6160ab253397620\tests.runsettings' has unknown format and cannot be converted to the current version."</p>
  </blockquote>
  
  <p>The file is dead simple (copied from msdn):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RunSettings&gt;
    &lt;!-- MSTest adapter --&gt;
    &lt;MSTest&gt;
      &lt;MapInconclusiveToFailed&gt;True&lt;/MapInconclusiveToFailed&gt;
      &lt;CaptureTraceOutput&gt;false&lt;/CaptureTraceOutput&gt;
      &lt;DeleteDeploymentDirectoryAfterTestRunIsComplete&gt;False&lt;/DeleteDeploymentDirectoryAfterTestRunIsComplete&gt;
      &lt;DeploymentEnabled&gt;False&lt;/DeploymentEnabled&gt;
    &lt;/MSTest&gt;
  &lt;/RunSettings&gt;
  </code></pre>
  
  <p>I'm banging my head over this for the last 2 hours and I can't believe, that something so simple is so hard to accomplish using MSTest.</p>
  
  <p>[Edit]</p>
  
  <p>It seems that the file should look like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;TestSettings
    id="b8968a45-0b6a-40a9-bcf7-7573da114965"
    name="MSTest"
    enableDefaultDataCollectors="false"
    xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010"&gt;
    &lt;Description&gt;&lt;!--_locID_text="Description1"--&gt;These are default test settings for a local test run.&lt;/Description&gt;
    &lt;Deployment enabled="false" /&gt;
  &lt;/TestSettings&gt;
  </code></pre>
  
  <p>...but it still doesn't work: tests are run in a custom folder and csv files are not copied.</p>