File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
SharedProject/Core/CoverageToolOutput Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ public string Provide(string projectFile)
11
11
{
12
12
string provided = null ;
13
13
var directory = new FileInfo ( projectFile ) . Directory ;
14
- while ( directory != null )
14
+ while ( directory != null )
15
15
{
16
- var isSolutionDirectory = directory . EnumerateFiles ( ) . Any ( f => f . Name . EndsWith ( ".sln" ) ) ;
16
+ var isSolutionDirectory = directory . EnumerateFiles ( ) . Any ( IsSolutionFile ) ;
17
17
if ( isSolutionDirectory )
18
18
{
19
19
provided = directory . FullName ;
@@ -23,5 +23,10 @@ public string Provide(string projectFile)
23
23
}
24
24
return provided ;
25
25
}
26
+
27
+ private bool IsSolutionFile ( FileInfo fileInfo )
28
+ {
29
+ return fileInfo . Name . EndsWith ( ".sln" ) || fileInfo . Name . EndsWith ( ".slnx" ) ;
30
+ }
26
31
}
27
32
}
You can’t perform that action at this time.
0 commit comments