Skip to content

dotnet pack - version suffix missing from ProjectReference #4337

@natemcmaster

Description

@natemcmaster

Follow up to #3953

Repro
ProjectA has project reference to ProjectB.
ProjectB contains <VersionPrefix>3.0.0</VersionPrefix>
dotnet pack ProjectA.csproj --version-suffix build001

Expected
ProjectA.nupkg has dependency on ProjectB 3.0.0-build001

Actual
ProjectA.nupkg has dependency on ProjectB 3.0.0

Details
Using 4.0.0-rc3
Worked in project.json, doesn't work here.
Workaround: msbuild "/t:Restore;Pack" /p:VersionSuffix=build001". Set VersionSuffix property on all projects during restore, not pack.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions