Skip to content

Commit e6f27fd

Browse files
author
Jason Zhai
committed
Continue reverting
1 parent 02c2bd5 commit e6f27fd

File tree

2 files changed

+24
-121
lines changed

2 files changed

+24
-121
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This script validates NuGet package metadata information using this
2+
# tool: https://github.com/NuGet/NuGetGallery/tree/jver-verify/src/VerifyMicrosoftPackage
3+
4+
param(
5+
[Parameter(Mandatory=$true)][string] $PackagesPath, # Path to where the packages to be validated are
6+
[Parameter(Mandatory=$true)][string] $ToolDestinationPath # Where the validation tool should be downloaded to
7+
)
8+
9+
try {
10+
. $PSScriptRoot\post-build-utils.ps1
11+
12+
$url = 'https://raw.githubusercontent.com/NuGet/NuGetGallery/3e25ad135146676bcab0050a516939d9958bfa5d/src/VerifyMicrosoftPackage/verify.ps1'
13+
14+
New-Item -ItemType 'directory' -Path ${ToolDestinationPath} -Force
15+
16+
Invoke-WebRequest $url -OutFile ${ToolDestinationPath}\verify.ps1
17+
18+
& ${ToolDestinationPath}\verify.ps1 ${PackagesPath}\*.nupkg
19+
}
20+
catch {
21+
Write-Host $_.ScriptStackTrace
22+
Write-PipelineTelemetryError -Category 'NuGetValidation' -Message $_
23+
ExitWithExitCode 1
24+
}

eng/common/post-build/nuget-verification.ps1

Lines changed: 0 additions & 121 deletions
This file was deleted.

0 commit comments

Comments
 (0)