Skip to content

Commit

Permalink
Fix dotnet publish command
Browse files Browse the repository at this point in the history
  • Loading branch information
dtretyakov committed Jul 21, 2016
1 parent a25e7f0 commit 4d68c21
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class PublishArgumentsProvider : ArgumentsProvider {
}

val tempValue = parameters[DotnetConstants.PARAM_PUBLISH_TEMP]
if (!outputValue.isNullOrBlank()) {
if (!tempValue.isNullOrBlank()) {
arguments.add("--build-base-path")
arguments.add(tempValue!!.trim())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@ class DotnetRunnerBuildServiceTest {
arrayOf(mapOf(
Pair(DotnetConstants.PARAM_PUBLISH_RUNTIME, "active"),
Pair(DotnetConstants.PARAM_PUBLISH_NO_BUILD, "true")),
listOf("publish", "--runtime", "active", "--no-build")))
listOf("publish", "--runtime", "active", "--no-build")),

arrayOf(mapOf(
Pair(DotnetConstants.PARAM_PUBLISH_OUTPUT, "out"),
Pair(DotnetConstants.PARAM_PUBLISH_CONFIG, "Release")),
listOf("publish", "--configuration", "Release", "--output", "out")))
}

@DataProvider
Expand Down

0 comments on commit 4d68c21

Please sign in to comment.