1. classlibrary3 references classlibrary51.
2. Classlibrary51 has nuspec file with version token
3. nuget pack -includereferencedprojects -verbosity detailed
Actual:
NuGet.CommandLineException: Error occurred when processing file ClassLibrary47\ClassLibrary51\ClassLibra
ry51.nuspec': '$version$' is not a valid version string. ---> System.ArgumentExc
eption: '$version$' is not a valid version string.
at NuGet.VersionUtility.ParseVersionSpec(String value)
at NuGet.Commands.ProjectFactory.CreateDependencyFromNuspecFile(String nuspec
FileName)
--- End of inner exception stack trace ---
at NuGet.Commands.ProjectFactory.CreateDependencyFromNuspecFile(String nuspec
FileName)
at NuGet.Commands.ProjectFactory.AddProjectReferenceDependencies(Dictionary`2
dependencies)
at NuGet.Commands.ProjectFactory.ProcessDependencies(PackageBuilder builder)
at NuGet.Commands.ProjectFactory.CreateBuilder(String basePath)
at NuGet.Commands.PackCommand.BuildFromProjectFile(String path)
at NuGet.Commands.PackCommand.BuildPackage(String path)
at NuGet.Commands.PackCommand.ExecuteCommand()
at NuGet.Commands.Command.Execute()
at NuGet.Program.Main(String[] args)
Expected:
it should replace id tokens before trying to add the package dependency.
Comments: Verified in the nightly build id token is not getting replaced correctly.
2. Classlibrary51 has nuspec file with version token
3. nuget pack -includereferencedprojects -verbosity detailed
Actual:
NuGet.CommandLineException: Error occurred when processing file ClassLibrary47\ClassLibrary51\ClassLibra
ry51.nuspec': '$version$' is not a valid version string. ---> System.ArgumentExc
eption: '$version$' is not a valid version string.
at NuGet.VersionUtility.ParseVersionSpec(String value)
at NuGet.Commands.ProjectFactory.CreateDependencyFromNuspecFile(String nuspec
FileName)
--- End of inner exception stack trace ---
at NuGet.Commands.ProjectFactory.CreateDependencyFromNuspecFile(String nuspec
FileName)
at NuGet.Commands.ProjectFactory.AddProjectReferenceDependencies(Dictionary`2
dependencies)
at NuGet.Commands.ProjectFactory.ProcessDependencies(PackageBuilder builder)
at NuGet.Commands.ProjectFactory.CreateBuilder(String basePath)
at NuGet.Commands.PackCommand.BuildFromProjectFile(String path)
at NuGet.Commands.PackCommand.BuildPackage(String path)
at NuGet.Commands.PackCommand.ExecuteCommand()
at NuGet.Commands.Command.Execute()
at NuGet.Program.Main(String[] args)
Expected:
it should replace id tokens before trying to add the package dependency.
Comments: Verified in the nightly build id token is not getting replaced correctly.