File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,8 +65,7 @@ public RefCommand(XRepoEnvironment environment)
6565
6666 if ( referencedCount > 0 )
6767 {
68- Console . WriteLine ( $ "Referenced { referencedCount } project(s). Running dotnet restore...") ;
69- SolutionHelper . DotnetRestore ( solutionPath ) ;
68+ Console . WriteLine ( $ "Referenced { referencedCount } project(s).") ;
7069 }
7170 else
7271 {
Original file line number Diff line number Diff line change @@ -47,8 +47,7 @@ public UnrefCommand(XRepoEnvironment environment)
4747 solutionFile . UnreferenceAll ( ) ;
4848 await solutionFile . SaveAsync ( ) ;
4949
50- Console . WriteLine ( "All xrepo project references have been removed. Running dotnet restore..." ) ;
51- SolutionHelper . DotnetRestore ( solutionPath ) ;
50+ Console . WriteLine ( "All xrepo project references have been removed." ) ;
5251 }
5352 else
5453 {
@@ -68,8 +67,7 @@ public UnrefCommand(XRepoEnvironment environment)
6867
6968 if ( result . ModifiedProjectCount > 0 )
7069 {
71- Console . WriteLine ( $ "Removed references to { result . RemovedProjectPathCount } project(s) from { result . ModifiedProjectCount } consuming project(s). Running dotnet restore...") ;
72- SolutionHelper . DotnetRestore ( solutionPath ) ;
70+ Console . WriteLine ( $ "Removed references to { result . RemovedProjectPathCount } project(s) from { result . ModifiedProjectCount } consuming project(s).") ;
7371 }
7472 else
7573 {
Original file line number Diff line number Diff line change @@ -20,11 +20,5 @@ public static string ResolveSolutionFrom(string? currentDir = null)
2020
2121 return solutions [ 0 ] ;
2222 }
23-
24- public static void DotnetRestore ( string solutionPath )
25- {
26- var executor = new ProcessExecutor ( Path . GetDirectoryName ( solutionPath ) ! ) ;
27- executor . Exec ( "dotnet" , "restore" ) . ToList ( ) ;
28- }
2923 }
3024}
You can’t perform that action at this time.
0 commit comments