OSDN Git Service

na-get-lib,依存関係解決時に、複数候補があるならばその中で最もバージョンが新しいソフ人を選ぶようにした。
authorttp <ttp@users.sourceforge.jp>
Sun, 21 Sep 2008 10:18:56 +0000 (10:18 +0000)
committerttp <ttp@users.sourceforge.jp>
Sun, 21 Sep 2008 10:18:56 +0000 (10:18 +0000)
git-svn-id: http://localhost/svn/AppliStation/trunk@983 34ed2c89-c49f-4a4b-abdb-c318350108cf

na-get-lib/NaGet.Packages.Install/DependeciesResolver.cs

index 5d1b32c..97ee753 100644 (file)
@@ -59,7 +59,7 @@ namespace NaGet.Packages.Install
                                                Package pkgToBeInstall = null;\r
                                                \r
                                                foreach (Package pkg in pkgListsMan.availablePkgList.GetPackagesForEntry(entry)) {\r
-                                                       if ((pkgToBeInstall == null) || (vc.Compare(pkgToBeInstall.Version, pkg.Version) > 0)) {\r
+                                                       if ((pkgToBeInstall == null) || (vc.Compare(pkgToBeInstall.Version, pkg.Version) < 0)) {\r
                                                                pkgToBeInstall = pkg;\r
                                                        }\r
                                                }\r