File tree Expand file tree Collapse file tree 2 files changed +24
-121
lines changed Expand file tree Collapse file tree 2 files changed +24
-121
lines changed Original file line number Diff line number Diff line change
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
+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments