Hi,
I've following structure for a .NET Framework project:
-->ProjectSoln
-------->ClassLibProj1
-------->ClassLibProj2
-------->ConsumerLibProj3
I've defined GlobalAssemblyInfo.cs file at solution level and added the reference to this file in all the 3 projects.
ConsumerLibraryProj3 has project reference to ClassLibraryProj1 and ClassLibraryProj2.
I've added nuspec file in the ConsumerLibProj3 that contains <version>$version$</version>.
I'm generating Nuget Package for the ConsumerLibraryProj3 using following command
nuget pack ConsumerLibProj3.csproj -includereferencedprojects -verbosity detailed
The package gets generated successfully, but the version of the ClassLibProj1 and ClassLibProj2 dlls in the package is not the latest. e.g. in the package ConsumerLibProj3.dll has version 1.0.0.2 whereas the ClassLibProj1.dll and ClassLibProj2.dll has version 1.0.0.1. The expectation is that all the three dll's should have same version because the the version is coming from the GlobalAssemblyInfo.cs file.
The solution is using .NET Framework type project. Any help will be appreciated.
What I have tried:
Added <version>$version$</version> to the nuspec file and using following command
nuget pack ConsumerLibProj3.csproj -includereferencedprojects -verbosity detailed