title: Why does dotnet build on a .NET Framework 4.5 project throw "This project references NuGet package(s) that are missing"?
body: <p>The sample <a href="https://github.com/microsoft/WinAppDriver/tree/master/Samples/C%23/NotepadAndCalculatorTest" rel="nofollow noreferrer">NotepadAndCalculatorTest</a> project built in VS Code using the terminal command <code>dotnet build</code> throws the following errors:</p>
  <pre><code>C:\Program Files\dotnet\sdk\5.0.401\Microsoft.Common.CurrentVersion.targets(820,5): error : The BaseOutputPath/OutputPath property is not set for project 'NotepadCalculatorTest.csproj'.  Please check to make sure that you have specified a valid combination of Configuration and Platform for this project.  Configuration='Debug'  Platform='AnyCPU'.  You may be seeing this message because you are trying to build a project without a solution file, 
  and have specified a non-default Configuration or Platform that doesn't exist for this project. [C:\Users\&lt;username&gt;\VSCode Projects\WinAppDriverTryout\Test\Samples\C#\NotepadAndCalculatorTest\NotepadCalculatorTest.csproj]
  </code></pre>
  <p>Or:</p>
  <pre><code>NotepadCalculatorTest.csproj(109,5): error : This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is packages\MSTest.TestAdapter.1.2.0\build\net45\MSTest.TestAdapter.props.
  </code></pre>
  <p>Could someone point me towards a possible way to get rid of the errors?</p>