diff --git a/eng/build.sh b/eng/build.sh index a4178b812019583ed2463bf3e97eb937005a4f5c..1a5383ab23e201dafd1d80bf58c2a176fd4b80ec 100755 --- a/eng/build.sh +++ b/eng/build.sh @@ -214,6 +214,12 @@ function BuildSolution { enable_analyzers=false fi + # NuGet often exceeds the limit of open files on Mac and Linux + # https://github.com/NuGet/Home/issues/2163 + if [[ "$UNAME" == "Darwin" || "$UNAME" == "Linux" ]]; then + ulimit -n 6500 + fi + local quiet_restore="" if [[ "$ci" != true ]]; then quiet_restore=true