I'm trying to create a central nuget package containing stylecop rules with a custom rule set for consumption by other projects. Let call this Package A.
Package A builds fine using dotnet pack and I can pull this into another project and the stylecop rules come through - so that is good.
Now we have Package B which itself is built as a nuget package, when consuming Package A locally and testing this is all fine.
But when deploying and building Package B and when that issues it's own dotnet pack command, it fails because it is trying to reference the dependency on Package A using the version number generated for Package B. So it is like ignoring the version of Package A which has obviously been set in the csproj of Package B.
I am using circleci as the CI tool, the project are using .net core 3.1.