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.
2 parents 03b3a03 + 82cc793 commit 6051fbdCopy full SHA for 6051fbd
SharedProject/Core/CoverageToolOutput/SolutionFolderProvider.cs
@@ -11,9 +11,9 @@ public string Provide(string projectFile)
11
{
12
string provided = null;
13
var directory = new FileInfo(projectFile).Directory;
14
- while(directory != null)
+ while (directory != null)
15
16
- var isSolutionDirectory = directory.EnumerateFiles().Any(f => f.Name.EndsWith(".sln"));
+ var isSolutionDirectory = directory.EnumerateFiles().Any(IsSolutionFile);
17
if (isSolutionDirectory)
18
19
provided = directory.FullName;
@@ -23,5 +23,10 @@ public string Provide(string projectFile)
23
}
24
return provided;
25
26
+
27
+ private bool IsSolutionFile(FileInfo fileInfo)
28
+ {
29
+ return fileInfo.Name.EndsWith(".sln") || fileInfo.Name.EndsWith(".slnx");
30
+ }
31
32
0 commit comments