aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-01-24 12:36:46 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2017-01-24 12:36:46 -0800
commitf2ac7a32aaf9e0f374cf3025f6f86561780951eb (patch)
tree895889d5fcfe0ab461759c2af906d052eeadf76a /scripts
parentd96f56736e9696248584506f364ee31acf12ddc3 (diff)
downloadvcpkg-f2ac7a32aaf9e0f374cf3025f6f86561780951eb.tar.gz
vcpkg-f2ac7a32aaf9e0f374cf3025f6f86561780951eb.zip
FetchDependency.ps1 now returns the downloaded exe's path
Diffstat (limited to 'scripts')
-rw-r--r--scripts/fetchDependency.ps12
-rw-r--r--scripts/findVisualStudioInstallationInstances.ps13
2 files changed, 3 insertions, 2 deletions
diff --git a/scripts/fetchDependency.ps1 b/scripts/fetchDependency.ps1
index d05d16bea..b56bf1087 100644
--- a/scripts/fetchDependency.ps1
+++ b/scripts/fetchDependency.ps1
@@ -202,6 +202,8 @@ function SelectProgram([Parameter(Mandatory=$true)][string]$Dependency)
{
throw [System.IO.FileNotFoundException] ("Could not detect or download " + $Dependency)
}
+
+ return $downloadPath
}
SelectProgram $Dependency \ No newline at end of file
diff --git a/scripts/findVisualStudioInstallationInstances.ps1 b/scripts/findVisualStudioInstallationInstances.ps1
index 241b05bc1..d5faa57d3 100644
--- a/scripts/findVisualStudioInstallationInstances.ps1
+++ b/scripts/findVisualStudioInstallationInstances.ps1
@@ -10,8 +10,7 @@ $vcpkgRootDir = & $scriptsDir\findFileRecursivelyUp.ps1 $scriptsDir .vcpkg-root
$downloadsDir = "$vcpkgRootDir\downloads"
-& $scriptsDir\fetchDependency.ps1 "nuget"
-$nugetexe = "$downloadsDir\nuget-3.5.0\nuget.exe"
+$nugetexe = & $scriptsDir\fetchDependency.ps1 "nuget"
$nugetPackageDir = "$downloadsDir\nuget-packages"
$SetupAPIVersion = "1.3.269-rc"