NuGet package not restored?

dixinyan's Avatar

dixinyan

12 Nov, 2019 03:48 AM

Hi,

https://ci.appveyor.com/project/Dixin/blog/builds/28788975/job/pyoe...
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 http://go.microsoft.com/fwlink/?LinkID=322105. 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?

Thanks.

  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

Generic

? 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