I have 3 class library projects (all .NET Standard 2.0) that are all in the same solution. I want to package them into a single nuget and use the code in other repos.
However, when I package them into a NuGet package two of them are added as a nuget dependency to the third one, instead of being directly referenced as dlls.
Here is an example of my setup.
The 3 projects - A.csproj, B.csproj, C.csproj (All Class Libraries, All .NET Standard 2.0)
A is set as a startup project and references B and C
B has a reference to C
C has no references to the other two (it only references 2 3rd party nugets)
When I package my solution into a nuget package, the nuspec file has a <dependencies> group that has all nuget references from my project (correct) along with 2 dependencies for projects B and C with versions 1.0.0 (incorrect)
I am not sure what is causing nuget to behave like this (I imagine its by design) but I cannot wrap my head around to fix the issue.
What I want is for projects B and C to be packaged as DLLs to project A and not as seprate packages.