How I can get latest version number by package name from local nuget server using C# code

Topics: General
Nov 30, 2013 at 6:35 AM
Hi,
I am using personal nuget server. I want to automate package version number. Currently I am using version number by writing following on assemblyInfo
[assembly: AssemblyVersion("1.0.0.*")]

It generates random version number of my package.
Some times newly created version number is less than the previous one.

In this case i want to do something which always increase the version number by checking my local repository.

So how i can achieve this or
How i can get latest version number by package name from C# code.

Need your help.