File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 22using System . Diagnostics ;
33using System . IO ;
44using System . Runtime . InteropServices ;
5+ using Incrementalist . FileSystem ;
56using LibGit2Sharp ;
67
78namespace Incrementalist . Cmd
@@ -44,8 +45,18 @@ static int Main(string[] args)
4445 Console . WriteLine ( "Are we inside repository? {0}" , insideRepo ) ;
4546 //if (insideRepo)
4647 //{
47- Console . WriteLine ( "Repo base is located in {0}" , Repository . Discover ( Directory . GetCurrentDirectory ( ) ) ) ;
48+ var repoFolder = Repository . Discover ( Directory . GetCurrentDirectory ( ) ) ;
49+
50+ Console . WriteLine ( "Repo base is located in {0}" , repoFolder ) ;
4851 //}
52+ if ( ! string . IsNullOrEmpty ( repoFolder ) )
53+ {
54+ var workingFolder = Directory . GetParent ( repoFolder ) . Parent ;
55+ foreach ( var sln in SolutionFinder . GetSolutions ( workingFolder . FullName ) )
56+ {
57+ Console . WriteLine ( "Found solution file {0}" , sln ) ;
58+ }
59+ }
4960
5061 ResetTitle ( ) ;
5162 return 0 ;
You can’t perform that action at this time.
0 commit comments