Skip to content

Commit

Permalink
Merge pull request #1481 from jchannon/patch-5
Browse files Browse the repository at this point in the history
Add output parameter to Dotnet BuildParams
  • Loading branch information
forki authored Mar 12, 2017
2 parents 2170c5c + 49f8d65 commit cd6ca9a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/FakeLib/DotNetCLIHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ type BuildParams = {

/// Additional Args
AdditionalArgs : string list

/// Optional outputh path
Output : string
}

let private DefaultBuildParams : BuildParams = {
Expand All @@ -181,6 +184,7 @@ let private DefaultBuildParams : BuildParams = {
Runtime = ""
Project = ""
AdditionalArgs = []
Output = ""
}

/// Runs the dotnet "build" command.
Expand All @@ -205,6 +209,7 @@ let Build (setBuildParams: BuildParams -> BuildParams) =
|> appendIfTrueWithoutQuotes (isNotNullOrEmpty parameters.Configuration) (sprintf "--configuration %s" parameters.Configuration)
|> appendIfTrueWithoutQuotes (isNotNullOrEmpty parameters.Framework) (sprintf "--framework %s" parameters.Framework)
|> appendIfTrueWithoutQuotes (isNotNullOrEmpty parameters.Runtime) (sprintf "--runtime %s" parameters.Runtime)
|> appendIfTrueWithoutQuotes (isNotNullOrEmpty parameters.Output) (sprintf "--output %s" parameters.Output)
|> fun sb ->
parameters.AdditionalArgs
|> List.fold (fun sb arg -> appendWithoutQuotes arg sb) sb
Expand Down

0 comments on commit cd6ca9a

Please sign in to comment.