Skip to content

Commit

Permalink
Merge pull request #753 from fsharp/Restore
Browse files Browse the repository at this point in the history
Do not restore packages during normal FAKE build
  • Loading branch information
forki committed Apr 9, 2015
2 parents 41d249f + 54ac8da commit 7d36e50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/FakeLib/MSBuildHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ type MSBuildParams =
Properties : (string * string) list
MaxCpuCount : int option option
NodeReuse : bool
RestorePackagesFlag : bool
ToolsVersion : string option
Verbosity : MSBuildVerbosity option
NoConsoleLogger : bool
Expand All @@ -148,6 +149,7 @@ let mutable MSBuildDefaults =
ToolsVersion = None
Verbosity = None
NoConsoleLogger = false
RestorePackagesFlag = false
FileLoggers = None
DistributedLoggers = None }

Expand Down Expand Up @@ -182,7 +184,7 @@ let serializeMSBuildParams (p : MSBuildParams) =
| [] -> None
| t -> Some("t", t |> Seq.map (replace "." "_") |> separated ";")

let properties = p.Properties |> List.map (fun (k, v) -> Some("p", sprintf "%s=\"%s\"" k v))
let properties = ("RestorePackages",p.RestorePackagesFlag.ToString()) :: p.Properties |> List.map (fun (k, v) -> Some("p", sprintf "%s=\"%s\"" k v))

let maxcpu =
match p.MaxCpuCount with
Expand Down

0 comments on commit 7d36e50

Please sign in to comment.