Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tools/DevCheck/DevCheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1964,6 +1964,14 @@ function Install-NugetExe

$url = 'https://dist.nuget.org/win-x86-commandline/latest/nuget.exe'
$file = [IO.Path]::GetFullPath($NugetExe)

# Create directory if it doesn't exist
$fileDir = [IO.Path]::GetDirectoryName($file)
if (-not(Test-Path -Path $fileDir -PathType Container))
{
$null = New-Item -ItemType Directory -Path $fileDir
}

Write-Host "Downloading nuget.exe from $url..."
Write-Verbose "Executing: curl.exe --output $file -L -# $url"
$null = Start-Process curl.exe -ArgumentList "--output $file -L -# $url" -Wait -NoNewWindow -PassThru
Expand Down
Loading