NuGet not updating project references

前端 未结 7 1090
鱼传尺愫
鱼传尺愫 2021-02-07 07:29

I recently migrated all my Visual Studio 2013 projects to Visual Studio 2015 and followed the steps documented in this article by Nuget to make sure that automatic package resto

7条回答
  •  [愿得一人]
    2021-02-07 07:53

    We realized that some of our junior developers only installed the required Nuget packages for ONE project in the solution, they then added references to the required dll's for all other projects by browsing to the physical location of the dll's on disk. This obviously caused the problem because only ONE of the projects in the solution contained entries for Nuget packages in it's packages.config file while the remaining projects in the solution contained none.

    When all packages were updated using the Update-Package command only the ONE project containing entries in it's packages.config file were updated with the correct project references.

    Even though this is not a Nuget bug and rather a problem caused by inexperience, I logged an issue with Nuget to see if they can improve the software to prevent these types of problems.

提交回复
热议问题