File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -543,8 +543,14 @@ let RunInLockedAccessMode(lockedFolder,lockedAction: unit -> bool) =
543543 if runDotNetRestore then
544544 let slnFiles = rootFolder.GetFiles( " *.sln" , SearchOption.TopDirectoryOnly)
545545 if Array.isEmpty slnFiles then
546- tracefn " Calling dotnet restore"
547- runDotnet rootFolder.FullName " restore"
546+ let projFiles = rootFolder.GetFiles( " *.*proj" , SearchOption.TopDirectoryOnly)
547+ if Array.isEmpty projFiles then
548+ tracefn " Calling dotnet restore"
549+ runDotnet rootFolder.FullName " restore"
550+ else
551+ for sln in projFiles do
552+ tracefn " Calling dotnet restore on %s " sln.Name
553+ runDotnet rootFolder.FullName ( sprintf " restore \" %s \" " sln.Name)
548554 else
549555 for sln in slnFiles do
550556 tracefn " Calling dotnet restore on %s " sln.Name
You can’t perform that action at this time.
0 commit comments