diff --git a/eng/CheckNugetStatus.yml b/eng/CheckNugetStatus.yml index 18a0c60c7..036452e14 100644 --- a/eng/CheckNugetStatus.yml +++ b/eng/CheckNugetStatus.yml @@ -24,9 +24,6 @@ steps: Write-Information -MessageData "sourcePath='${{parameters.sourcePath}}'" -InformationAction Continue Write-Information -MessageData "nugetConfig='${{parameters.nugetConfig}}'" -InformationAction Continue Write-Information -MessageData "#########################################" -InformationAction Continue - if (!(Test-Path "${{parameters.nugetConfig}}" -PathType Leaf)) { - Write-Host "##vso[task.LogIssue type=error;]nuget config file not found." - } if (!(Test-Path "${{parameters.sourcePath}}" -PathType Container)) { Write-Host "##vso[task.LogIssue type=error;]sourcePath does not exist." } @@ -36,7 +33,7 @@ steps: $projectFiles = Get-ChildItem -Path ${{parameters.sourcePath}} -Filter *.csproj -Recurse foreach ($project in $projectFiles) { try { - $outdatedList = dotnet list $project package --outdated --include-transitive --source https://api.nuget.org/v3/index.json --config ${{parameters.nugetConfig}} + $outdatedList = dotnet list $project package --outdated --include-transitive --source https://api.nuget.org/v3/index.json if ($LASTEXITCODE -gt 0) { Throw "The command exited with error code: $lastexitcode" }