title: testing in .net framework
body: <p>I have created a unit test project targetting .NET Framework 4.6.1. The tests appear in Test Explorer and run fine in Visual Studio 2017.</p>
  
  <p>I want to set up a build process, so I want to run the tests from the command line. I attempted to use mstest but this did not find the tests. </p>
  
  <p>when i run </p>
  
  <pre><code>mstest /testcontainer:mp.tests\bin\debug\mp.tests.dll
  </code></pre>
  
  <p>I get...</p>
  
  <pre><code>Loading messageparser.tests\bin\debug\messageparser.tests.dll...
  Starting execution...
  No tests to execute.
  </code></pre>
  
  <p>However I can successfully use the command 'dotnet test' to run them.</p>
  
  <p>When I run</p>
  
  <pre><code>dotnet test
  </code></pre>
  
  <p>I get...</p>
  
  <pre><code>Build started, please wait...
  Build completed.
  
  Test run for C:\MP.Tests\bin\Debug\MP.Tests.dll(.NETFramework,Version=v4.6.1)
  Microsoft (R) Test Execution Command Line Tool Version 15.5.0
  Copyright (c) Microsoft Corporation.  All rights reserved.
  
  Starting test execution, please wait...
  
  Total tests: 70. Passed: 70. Failed: 0. Skipped: 0.
  Test Run Successful.
  Test execution time: 8.2833 Seconds
  </code></pre>
  
  <p>However the guidance I have found suggests that 'dotnet test' should be used for .NET Core with no mention of .NET Framework.</p>
  
  <p>Is dotnet test the appropriate way to run tests from the command line for .NET Framework projects? Or should I be using mstest? If so, how do I get it to work?</p>