How does dotnet pack choose the dependency version for a ProjectReference?
dotnet pack turns every ProjectReference into a NuGet dependency whose minimum version is the referenced project's PackageVersion, or 1.0.0 when it has none. Here is the MSBuild target that computes it, what changes it, and how to emit an exact or capped range.