Skip to content

Commit

Permalink
Fix bug in Download-BcNuGetPackageToFolder (#3699)
Browse files Browse the repository at this point in the history
Error occurs when using -downloadDependencies with value 'own' because
of an invalid reference

This fixes that by correcting the reference, allowing to download
dependencies where the author matches
  • Loading branch information
adamLiveware authored Oct 4, 2024
1 parent 7eae913 commit e77f25b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NuGet/Download-BcNuGetPackageToFolder.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ try {
}
}
elseif ($downloadDependencies -eq 'own') {
$downloadIt = ($dependencyPublisher -eq $manifest.package.authors)
$downloadIt = ($dependencyPublisher -eq $manifest.package.metadata.authors)
}
elseif ($downloadDependencies -eq 'allButMicrosoft') {
# Download if publisher isn't Microsoft (including if publisher is empty)
Expand Down

0 comments on commit e77f25b

Please sign in to comment.