@@ -456,7 +456,7 @@ let runDotnet workingDir arguments =
456456 let p = new System.Diagnostics.Process()
457457 p.StartInfo.WorkingDirectory <- workingDir
458458 p.StartInfo.FileName <- " dotnet"
459- p.StartInfo.Arguments <- arguments
459+ p.StartInfo.Arguments <- arguments
460460 p.Start() |> ignore
461461 p.WaitForExit()
462462 p.ExitCode
@@ -469,7 +469,7 @@ let RunInLockedAccessMode(lockedFolder,lockedAction: unit -> bool) =
469469 Directory.CreateDirectory lockedFolder |> ignore
470470
471471 let rootFolder = DirectoryInfo( lockedFolder) .Parent
472-
472+
473473 let currentProcess = System.Diagnostics.Process.GetCurrentProcess()
474474 let fileName = Path.Combine( lockedFolder, Constants.AccessLockFileName)
475475 let pid = string currentProcess.Id
@@ -486,7 +486,7 @@ let RunInLockedAccessMode(lockedFolder,lockedAction: unit -> bool) =
486486 let content = File.ReadAllText fileName
487487 if content = pid then
488488 skipUnlock <- true
489- else
489+ else
490490 let hasRunningPaketProcess =
491491 Process.GetProcessesByName currentProcess.ProcessName
492492 |> Array.filter ( fun p -> string p.Id <> pid)
@@ -497,11 +497,11 @@ let RunInLockedAccessMode(lockedFolder,lockedAction: unit -> bool) =
497497 failwith " timeout"
498498 else
499499 Thread.Sleep 100
500- else
500+ else
501501 skipUnlock <- true
502502 else
503503 skipUnlock <- true
504-
504+
505505 File.WriteAllText( fileName, pid)
506506 skip <- true
507507 with
@@ -544,13 +544,10 @@ let RunInLockedAccessMode(lockedFolder,lockedAction: unit -> bool) =
544544 let slnFiles = rootFolder.GetFiles( " *.sln" , SearchOption.TopDirectoryOnly)
545545 if Array.isEmpty slnFiles then
546546 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)
547+
548+ for proj in projFiles do
549+ tracefn " Calling dotnet restore on %s " proj.Name
550+ runDotnet rootFolder.FullName ( sprintf " restore \" %s \" " proj.Name)
554551 else
555552 for sln in slnFiles do
556553 tracefn " Calling dotnet restore on %s " sln.Name
@@ -770,7 +767,7 @@ let extractZipToDirectory (zipFileName:string) (directoryName:string) =
770767 if fi.Exists then
771768 try fi.Delete() with | _ -> ()
772769 entry.ExtractToFile( destinationPath)
773-
770+
774771
775772
776773// adapted from MiniRx
0 commit comments