File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,13 @@ let UpdatePaketSilent () =
5959 | Some path -> Process.exec path " mono" " "
6060 | None -> Promise.empty
6161
62+ let UpdatePaket () =
63+ match getBootstrapperPath () with
64+ | Some path ->
65+ Process.spawnWithNotification path " mono" " " outputChannel
66+ |> Process.toPromise
67+ | None -> Promise.empty
68+
6269let runWithPaketLocation f =
6370 match getPaketPath () with
6471 | Some location ->
@@ -72,7 +79,7 @@ let private spawnPaket cmd =
7279 window.showErrorMessage( " Paket can be run only if folder is open" )
7380 |> ignore
7481 else
75- UpdatePaketSilent ()
82+ UpdatePaket ()
7683 |> Promise.bind ( fun _ ->
7784 runWithPaketLocation ( fun location ->
7885 outputChannel.clear ()
@@ -95,7 +102,7 @@ let private spawnPaket cmd =
95102
96103let private execPaket cmd = promise {
97104 if workspace.rootPath <> null then
98- let! _ = UpdatePaketSilent ()
105+ let! _ = UpdatePaket ()
99106 return ! runWithPaketLocation ( fun location ->
100107 Process.exec location " mono" cmd)
101108 else
@@ -278,7 +285,7 @@ let private createDependenciesProvider () =
278285 | PaketTag " nuget" -> send word
279286 | PaketTag " source" -> [ " https://api.nuget.org/v3/index.json" ; " https://nuget.org/api/v2" ] |> concatAndLift
280287 | PaketTag " framework:" ->
281- [
288+ [
282289 " net35"
283290 " net40"
284291 " net45"
You can’t perform that action at this time.
0 commit comments