Skip to content

Commit

Permalink
Bump version to 7.0.0-alpha018
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Feb 17, 2022
1 parent 4c25908 commit 3a64206
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#### 7.0.0-alpha017 - 2022-12-17
#### 7.0.0-alpha018 - 2022-12-17
* Support as .NET 6.0 tool
* Auto-Restore after paket install an paket update

Expand Down
12 changes: 9 additions & 3 deletions src/Paket.Core/Common/Utils.fs
Original file line number Diff line number Diff line change
Expand Up @@ -540,9 +540,15 @@ let RunInLockedAccessMode(lockedFolder,lockedAction: unit -> bool) =
let runDotNetRestore = lockedAction()

releaseLock 5
if runDotNetRestore then
tracefn "Calling dotnet restore"
runDotnet rootFolder.FullName "restore"
if runDotNetRestore then
let slnFiles = rootFolder.GetFiles("*.sln", SearchOption.TopDirectoryOnly)
if Array.isEmpty slnFiles then
tracefn "Calling dotnet restore"
runDotnet rootFolder.FullName "restore"
else
for sln in slnFiles do
tracefn "Calling dotnet restore on %s" sln.Name
runDotnet rootFolder.FullName (sprintf "restore \"%s\"" sln.Name)
with
| _ ->
releaseLock 5
Expand Down

0 comments on commit 3a64206

Please sign in to comment.