Downloading dependency downloads an old version

Topics: General
Aug 16, 2012 at 10:26 AM

I have the following projects (in the official feed):

Saltarelle.Compiler
Saltarelle.Runtime, depends on Saltarelle.Compiler version="0.0"

Both these packages have these versions in the feed:

1.0-alpha, 1.0-alpha1, 1.0.0, 1.0.1, 1.1.1, 1.1.2, 1.1.3

When I do

Install-Package Saltarelle.Runtime, it will install Saltarelle.Runtime 1.1.3 and Saltarelle.Compiler 1.0.1.

Why is this? Why does it pick an old version of the compiler at seemingly random?

Aug 16, 2012 at 4:50 PM

Yup, that's by design. When picking the version for a dependency package, NuGet will pick the version with the lowest major and minor number, and among those, the higest revision and build numbers. In your case, that's 1.0.1.

 

 

Aug 21, 2012 at 11:00 AM
Edited Aug 21, 2012 at 11:01 AM

It seems that I don`t have the packages version in the feed like yours.What went wrong?Need help,thanks!

 

__________________

Throw Pillows

Aug 21, 2012 at 10:22 PM

What exactly are you asking? Are you asking about my project specifically or are you asking a general nuget question?

Aug 24, 2012 at 10:02 AM

I didn't actually understood what kind of problem you are trying to fix. Could you explain better?

 

 

_____________________________

Universities Europe