The tree of my solution looks like :
Project A
- References Nuget Package "Some Package"
Project B
- References Project A
When building, project B produces a package, let's call it PackageB
In ProjectB.csproj I have used the following:
<ProjectReference Include="ProjectA.csproj"><PrivateAssets>All</PrivateAssets></ProjectReference>
Meaning PackageB
, in addition to ProjecdtB.dll
, includes ProjectA.dll
However it does not include "Some Package", so when I launch a client that references PackageB
, I get a runtime error complaining that the dll contains in "Some Package" is missing.
How can I make sure "Some Package" is added as a depencency of PackageB
. I'd like to do this in csproj, without relying on a nuspec file. Is this possible ?
[EDIT]In order to get ProjectA included in the PackageB, I also need to mention that I'm using the Teronis.MSBuild.Packaging.ProjectBuildInPackage.