We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48f2e31 commit 8aedf59Copy full SHA for 8aedf59
src/Smdn.Reflection.ReverseGenerating.ListApi/Smdn.Reflection.ReverseGenerating.ListApi/ProjectFinder.cs
@@ -27,9 +27,10 @@ public static FileInfo FindSingleProjectOrSolution(
27
.Where(static file =>
28
// *.sln, *.csproj, *.vbproj, etc
29
Regex.IsMatch(file.Extension, @"\.(?i:sln|[a-z]+proj)$", RegexOptions.Singleline | RegexOptions.CultureInvariant)
30
- );
+ )
31
+ .ToList();
32
- if (1 < solutionAndProjectFiles.Count())
33
+ if (1 < solutionAndProjectFiles.Count)
34
throw new InvalidOperationException($"multiple solution or project file found in directory '{directory.FullName}'");
35
36
var first = solutionAndProjectFiles.FirstOrDefault()
0 commit comments