Skip to content

Commit 3a64206

Browse files
committed
Bump version to 7.0.0-alpha018
1 parent 4c25908 commit 3a64206

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#### 7.0.0-alpha017 - 2022-12-17
1+
#### 7.0.0-alpha018 - 2022-12-17
22
* Support as .NET 6.0 tool
33
* Auto-Restore after paket install an paket update
44

src/Paket.Core/Common/Utils.fs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -540,9 +540,15 @@ let RunInLockedAccessMode(lockedFolder,lockedAction: unit -> bool) =
540540
let runDotNetRestore = lockedAction()
541541

542542
releaseLock 5
543-
if runDotNetRestore then
544-
tracefn "Calling dotnet restore"
545-
runDotnet rootFolder.FullName "restore"
543+
if runDotNetRestore then
544+
let slnFiles = rootFolder.GetFiles("*.sln", SearchOption.TopDirectoryOnly)
545+
if Array.isEmpty slnFiles then
546+
tracefn "Calling dotnet restore"
547+
runDotnet rootFolder.FullName "restore"
548+
else
549+
for sln in slnFiles do
550+
tracefn "Calling dotnet restore on %s" sln.Name
551+
runDotnet rootFolder.FullName (sprintf "restore \"%s\"" sln.Name)
546552
with
547553
| _ ->
548554
releaseLock 5

0 commit comments

Comments
 (0)