Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6051fbd

Browse files
Merge pull request #523 from tonyhallett/use-slnx-fccsolutionoutputdirectoryname
look for slnx
2 parents 03b3a03 + 82cc793 commit 6051fbd

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎SharedProject/Core/CoverageToolOutput/SolutionFolderProvider.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ public string Provide(string projectFile)
1111
{
1212
string provided = null;
1313
var directory = new FileInfo(projectFile).Directory;
14-
while(directory != null)
14+
while(directory != null)
1515
{
16-
var isSolutionDirectory = directory.EnumerateFiles().Any(f =>f.Name.EndsWith(".sln"));
16+
var isSolutionDirectory = directory.EnumerateFiles().Any(IsSolutionFile);
1717
if (isSolutionDirectory)
1818
{
1919
provided = directory.FullName;
@@ -23,5 +23,10 @@ public string Provide(string projectFile)
2323
}
2424
return provided;
2525
}
26+
27+
private bool IsSolutionFile(FileInfo fileInfo)
28+
{
29+
return fileInfo.Name.EndsWith(".sln") || fileInfo.Name.EndsWith(".slnx");
30+
}
2631
}
2732
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /