title: Your project does not reference ".NETFramework,Version=v4.6.2" framework. Add a reference to ".NETFramework,Version=v4.6.2" in the "TargetFrameworks"
body: <p>I can't run my unit tests.</p>
  
  <p>I have the next error:</p>
  
  <blockquote>
    <p>Your project does not reference ".NETFramework,Version=v4.6.2"
    framework. Add a reference to ".NETFramework,Version=v4.6.2" in the
    "TargetFrameworks" property of your project file and then re-run NuGet
    restore.</p>
  </blockquote>
  
  <p>In <code>app.config</code>:</p>
  
  <pre><code>&lt;startup&gt;
    &lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/&gt;
  &lt;/startup&gt;
  </code></pre>
  
  <p>In Project > Properties > Application > TargetFramework (.NET Framework 4.6.2) </p>
  
  <p>How can I fix it?</p>