Remove Download-Nupkg, fix path to dotnet restore
This commit is contained in:
Родитель
6b360583c6
Коммит
02148c6a61
|
@ -74,7 +74,7 @@ function Install-BuildTools
|
|||
& dotnet clean "$rootDir\buildtools"
|
||||
}
|
||||
|
||||
& dotnet restore .\BuildTools\ --verbosity detailed
|
||||
& dotnet restore "$rootDir\buildtools" --verbosity detailed
|
||||
& dotnet build "$rootDir\buildtools" -c Release "-bl:$PSScriptRoot\..\bin\logs\buildtools.binlog"
|
||||
ThrowOnNativeProcessError
|
||||
|
||||
|
@ -232,17 +232,6 @@ function Get-OutputWinmdFileName
|
|||
return $path
|
||||
}
|
||||
|
||||
function Download-Nupkg
|
||||
{
|
||||
Param ([string] $name, [string] $version, [string] $outputDir)
|
||||
|
||||
$url = "https://www.nuget.org/api/v2/package/$name/$version"
|
||||
$output = "$outputDir\$name.$version.nupkg"
|
||||
|
||||
$wc = New-Object System.Net.WebClient
|
||||
$wc.DownloadFile($url, $output)
|
||||
}
|
||||
|
||||
function Get-ExcludedItems
|
||||
{
|
||||
param ([string[]]$rspFiles)
|
||||
|
|
Загрузка…
Ссылка в новой задаче