Update build.cake
This commit is contained in:
Родитель
051684b52b
Коммит
6e7c9d3196
|
@ -22,7 +22,9 @@ Task("ValidateVersions")
|
|||
Task("UpdateVersions")
|
||||
.Does(() =>
|
||||
{
|
||||
Updater.FindReferences("../build/", "*.props", new string[] { }).UpdateVersions("Newtonsoft.Json", "10.0.3");
|
||||
var versions = NuGetApi.GetPackageVersions("https://api.nuget.org/v3/index.json", "Newtonsoft.Json").Result;
|
||||
var latestVersion = versions.Reverse().FirstOrDefault();
|
||||
Updater.FindReferences("../build/", "*.props", new string[] { }).UpdateVersions("Newtonsoft.Json", latestVersion);
|
||||
});
|
||||
|
||||
Task("InstalledVersions")
|
||||
|
|
Загрузка…
Ссылка в новой задаче