NuGet package not restored?

dixinyan's Avatar


12 Nov, 2019 03:48 AM

I have a .sln with some .NET Framework 4.8 projects and some .NET COre 3.0 projects (image: Visual Studio 2019). I have enabled NuGet restore (EnableNuGetPackageRestore: true)

Then I got error:

C:\projects\blog\Source\Blog\Dixin.Net.Tests\Dixin.Net.Tests.csproj(95,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 The missing file is ..\packages\MSTest.TestAdapter.2.0.0\build\net45\MSTest.TestAdapter.props.
       Done executing task "Error" -- FAILED.
    10>Done building target "EnsureNuGetPackageBuildImports" in project "Dixin.Net.Tests.csproj" -- FAILED.
Can you please help?


  1. Support Staff 1 Posted by Feodor Fitsner on 12 Nov, 2019 07:18 PM

    Feodor Fitsner's Avatar

    Try running explicit nuget restore before the build?

  2. Feodor Fitsner closed this discussion on 03 Apr, 2020 06:46 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

30 Jul, 2021 11:17 AM
29 Jul, 2021 08:26 PM
29 Jul, 2021 10:50 AM
27 Jul, 2021 05:08 PM
27 Jul, 2021 05:16 AM