Bump version of nuget to 4.3.0 (was 4.1.0)

This commit is contained in:
Alexander Karatarakis 2017-10-06 14:06:02 -07:00
parent 0b97b05a7e
commit cd4142d3ca
2 changed files with 6 additions and 6 deletions

View File

@ -116,11 +116,11 @@ function SelectProgram([Parameter(Mandatory=$true)][string]$Dependency)
}
elseif($Dependency -eq "nuget")
{
$requiredVersion = "4.1.0"
$downloadVersion = "4.1.0"
$url = "https://dist.nuget.org/win-x86-commandline/v4.1.0/nuget.exe"
$requiredVersion = "4.3.0"
$downloadVersion = "4.3.0"
$url = "https://dist.nuget.org/win-x86-commandline/v4.3.0/nuget.exe"
$downloadPath = "$downloadsDir\nuget-$downloadVersion\nuget.exe"
$expectedDownloadedFileHash = "4c1de9b026e0c4ab087302ff75240885742c0faa62bd2554f913bbe1f6cb63a0"
$expectedDownloadedFileHash = "386da77a8cf2b63d1260b7020feeedabfe3b65ab31d20e6a313a530865972f3a"
$executableFromDownload = $downloadPath
$extractionType = $ExtractionType_NO_EXTRACTION_REQUIRED
}

View File

@ -130,10 +130,10 @@ namespace vcpkg
fs::path get_nuget_path(const fs::path& downloads_folder, const fs::path& scripts_folder)
{
static constexpr std::array<int, 3> EXPECTED_VERSION = {4, 1, 0};
static constexpr std::array<int, 3> EXPECTED_VERSION = {4, 3, 0};
static const std::wstring VERSION_CHECK_ARGUMENTS = Strings::WEMPTY;
const fs::path downloaded_copy = downloads_folder / "nuget-4.1.0" / "nuget.exe";
const fs::path downloaded_copy = downloads_folder / "nuget-4.3.0" / "nuget.exe";
const std::vector<fs::path> from_path = Files::find_from_PATH(L"nuget");
std::vector<fs::path> candidate_paths;