NuGet has problems with missing packages, how to restore?

前端 未结 5 1623
长情又很酷
长情又很酷 2021-02-05 04:52

When I try to compile my program I get the following error:

This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Res         


        
5条回答
  •  执笔经年
    2021-02-05 05:03

    Use Package Manager Console in Visual Studio to run this command.

    1.This will restore all packages from solution

    nuget restore YourSolution.sln
    

    2.If you want to reinstall the packages to the same versions as were previously installed

    Update-Package -reinstall
    

提交回复
热议问题