I have reproduced this issue in the following simple scenario
Now I want to create a nuget package of LibA
and run:
nuget pack LibA.csproj
This works fine, but when I check the nuget package I can't find a LibB.dll
in the lib folders as I expected. Why not?
I'm using version 2.2 of Nuget.
Any time a package is installed or reinstalled, which includes being installed as part of a restore process, NuGet also installs any additional packages on which that first package depends. Those immediate dependencies might then also have dependencies on their own, which can continue to an arbitrary depth.
Update a package. In Solution Explorer, right-click either References or the desired project, and select Manage NuGet Packages.... (In web site projects, right-click the Bin folder.) Select the Updates tab to see packages that have available updates from the selected package sources.
NuGet 2.5 now has a -includereferencedprojects
option, more details can be found here : NuGet Command-Line Interface (CLI) Reference | Microsoft Docs
I download the latest version of nuget.exe
from nuget.org/nuget.exe
or by nuget update -self
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With