title: Visual Studio unable to run .NET Core tests
body: <p>Using the latest version of Visual Studio, I'm unable to run any tests in the tests explorer. The error message in the <code>Tests</code> output window is:</p>
  
  <pre><code>Testhost process exited with error: It was not possible to find any compatible framework version
  The framework 'Microsoft.AspNetCore.App', version '2.2.0' was not found.
    - The following frameworks were found:
        3.1.0 at [C:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
  You can resolve the problem by installing the specified framework and/or SDK.
  The specified framework can be found at:
    - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.AspNetCore.App&amp;framework_version=2.2.0&amp;arch=x86&amp;rid=win10-x86
  . Please check the diagnostic logs for more information.
  [17/12/2019 5:46:13.908 PM] ========== Run aborted: 0 tests run (0:00:00.2418036) ==========
  </code></pre>
  
  <p>So it's suggestion that I need to have .net core 2.2 installed but it cannot find it. It can only find 3.1.</p>
  
  <p>Let's confirm that ....</p>
  
  <pre><code>C:\Users\justi&gt;dotnet --info
  .NET Core SDK (reflecting any global.json):
   Version:   3.1.100
   Commit:    cd82f021f4
  
  Runtime Environment:
   OS Name:     Windows
   OS Version:  10.0.18362
   OS Platform: Windows
   RID:         win10-x64
   Base Path:   C:\Program Files\dotnet\sdk\3.1.100\
  
  Host (useful for support):
    Version: 3.1.0
    Commit:  65f04fb6db
  
  .NET Core SDKs installed:
    2.1.604 [C:\Program Files\dotnet\sdk]
    2.1.700 [C:\Program Files\dotnet\sdk]
    2.1.701 [C:\Program Files\dotnet\sdk]
    2.1.801 [C:\Program Files\dotnet\sdk]
    2.1.802 [C:\Program Files\dotnet\sdk]
    2.2.100 [C:\Program Files\dotnet\sdk]
    2.2.200 [C:\Program Files\dotnet\sdk]
    2.2.201 [C:\Program Files\dotnet\sdk]
    2.2.202 [C:\Program Files\dotnet\sdk]
    2.2.204 [C:\Program Files\dotnet\sdk]
    2.2.206 [C:\Program Files\dotnet\sdk]
    2.2.300 [C:\Program Files\dotnet\sdk]
    2.2.301 [C:\Program Files\dotnet\sdk]
    2.2.401 [C:\Program Files\dotnet\sdk]
    2.2.402 [C:\Program Files\dotnet\sdk]
    3.1.100 [C:\Program Files\dotnet\sdk]
  
  .NET Core runtimes installed:
    Microsoft.AspNetCore.All 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
    &lt;snip snip&gt;
    Microsoft.AspNetCore.All 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
    Microsoft.AspNetCore.All 2.2.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
    Microsoft.AspNetCore.All 2.2.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
    &lt;snip snip&gt;
    Microsoft.AspNetCore.App 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
    Microsoft.AspNetCore.App 2.2.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
    Microsoft.AspNetCore.App 2.2.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
    &lt;snip snip&gt;
    Microsoft.AspNetCore.App 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
    Microsoft.AspNetCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
    Microsoft.NETCore.App 2.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
    Microsoft.NETCore.App 2.1.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
    &lt;snip snip&gt;
    Microsoft.NETCore.App 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
    Microsoft.NETCore.App 2.2.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
    Microsoft.NETCore.App 2.2.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
    &lt;snip snip&gt;
    Microsoft.NETCore.App 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
    Microsoft.NETCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
    Microsoft.WindowsDesktop.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  
  To install additional .NET Core runtimes or SDKs:
    https://aka.ms/dotnet-download
  
  </code></pre>
  
  <p>So it <em>feels</em> like I have 2.2.0 installed, as it's listed in the list of the many versions installed.</p>
  
  <h3>Edit</h3>
  
  <p>Notice this bit (emphasis mine): </p>
  
  <blockquote>
    <ul>
    <li>The following frameworks were found:
      3.1.0 at [C:\Program Files <strong>(x86)</strong>\dotnet\shared\Microsoft.AspNetCore.App]</li>
    </ul>
  </blockquote>
  
  <p>It looks like it's got 3.1.0 installed into .. <code>x86</code> while the rest of the sdk's are installed under <code>Program Files</code> (x64 bit versions).</p>
  
  <p>Why does it say this?</p>
  
  <h3>Edit 2:</h3>
  
  <ul>
  <li>xUnit </li>
  <li>xUnit VS runner nuget is also 'installed'.</li>
  <li>Visual Studio 16.4.1</li>
  </ul>