improve NuGet discovery by expanding *.proj
and *.sln
files
#9785
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This also removes a recursive search that wasn't correct; the only entry points allowed from any given directory are the following:
*.sln
// n.b., this will be expanded to regular project files*.proj
// n.b., this will be expanded to regular project files*.(cs|vb|fs)proj
// regular project filesThis fixes some internal issues where a
.sln
file might be in a different directory than the projects, e.g., dependabot is started in the/solutions
directory and the following files exist:/solutions/the-solution.sln
and/src/project.csproj
. Previously, dependabot wouldn't have been able to navigate from the/solutions
directory over to/src
but now as long as the project listing in the.sln
is correct, then we'll pull in the correct projects.The same applies to
*.proj
files as well as*.(cs|vb|fs)proj
files that might have had a<ProjectReference>
element to another directory.