Skip to content

Commit

Permalink
remove nuget.config check
Browse files Browse the repository at this point in the history
  • Loading branch information
Bertk committed Oct 30, 2023
1 parent 830c9cd commit 5762d09
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions eng/CheckNugetStatus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
Expand All @@ -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"
}
Expand Down

0 comments on commit 5762d09

Please sign in to comment.