NuGet: pack command is NOT including nuget dependencies

后端 未结 5 784
孤独总比滥情好
孤独总比滥情好 2021-01-07 18:20

i have the following setting:

  • nuget.exe Version: 1.6.21205.9031
  • Project A.csproj packaged into A.1.0.0.0.nupkg, and published to a LOCAL package repos
5条回答
  •  我在风中等你
    2021-01-07 18:55

    Similar question was asked here, and the answer explains that:

    The reason why these were causing problems is because NuGet looks for the solution level packages folder to decide which package dependencies to pull in (not quite sure how this determination is made). If the path to that packages folder is incorrect (as it would be if NuGet uses the wrong solution file), then it can't resolve the dependencies correctly. In addition if the packages folder is empty, it also cannot resolve the dependencies correctly.

    I had the same problem and adding solution file to project folder (previously without solution) helped me to resolve the issue.

提交回复
热议问题