-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Remove SlnFile
references
#45442
Remove SlnFile
references
#45442
Conversation
f367673
to
e1d98ce
Compare
ab898f4
to
1627d33
Compare
@@ -76,8 +76,11 @@ private static (bool isSolution, string workspacePath) FindFile(string workspace | |||
return (isSolution, workspacePath); | |||
} | |||
|
|||
private static IEnumerable<string> FindSolutionFiles(string basePath) => Directory.EnumerateFileSystemEntries(basePath, "*.sln", SearchOption.TopDirectoryOnly) | |||
.Concat(Directory.EnumerateFileSystemEntries(basePath, "*.slnf", SearchOption.TopDirectoryOnly)); | |||
private static IEnumerable<string> FindSolutionFiles(string basePath) => [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can return string[] and use the array all the way to avoid .ToList in the end. it makes an unnecessary copy in FindMatchingFile to find count
Co-authored-by: kasperk81 <83082615+kasperk81@users.noreply.github.com>
258a269
to
24b44dc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lot of deleted code! I guess it was all SlnFile-specific?
I think this at least mostly accomplishes your goal. I feel like we should better support slnf, as that's basically a sln*.
src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/ListPackageReferencesCommand.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signing off for the MSBuildWorkspaceFinder.cs change which is owned by roslyn-ide; the rest is unreviewed.
@dotnet/source-build I have removed project |
Error is: I believe you will have to update source-build.slnf to reflect that you've removed |
SlnFile
is being replaced by vs-solutionpersistence as part of the efforts for .slnx supportThis should be replaced in all remaining places it might be used
Contributes #40913