NuGet Package Restore Not Working

后端 未结 20 2057
情书的邮戳
情书的邮戳 2020-12-02 04:06

I checked in a project on one computer, checked out on another, and find that the binaries installed by NuGet are missing. I could check them in to source control as well,

20条回答
  •  一向
    一向 (楼主)
    2020-12-02 04:54

    You have to choose one way of the following :

    Re-installing a package by it's name in all solution's projects:

    Update-Package –reinstall 
    

    Re-installing a package by it's name and ignoring it's dependencies in all solution's projects:

    Update-Package –reinstall  -ignoreDependencies
    

    Re-installing a package by it's name in a project:

    Update-Package –reinstall  
    

    Re-installing all packages in a specific project:

    Update-Package -reinstall -ProjectName 
    

    Re-installing all packages in a solution:

    Update-Package -reinstall 
    

提交回复
热议问题