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)
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} 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments