Browse Source
Merge pull request #2164 from wieslawsoltes/FixNukeBuildParameters
Parameter properties names must be same as command-line
pull/2124/head
Nikita Tsukanov
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
6 deletions
-
nukebuild/BuildParameters.cs
|
|
|
@ -14,13 +14,13 @@ using static Nuke.Common.Tools.MSBuild.MSBuildTasks; |
|
|
|
public partial class Build |
|
|
|
{ |
|
|
|
[Parameter("configuration")] |
|
|
|
public string NukeArgConfiguration { get; set; } |
|
|
|
public string Configuration { get; set; } |
|
|
|
|
|
|
|
[Parameter("skip-tests")] |
|
|
|
public bool NukeArgSkipTests { get; set; } |
|
|
|
public bool SkipTests { get; set; } |
|
|
|
|
|
|
|
[Parameter("force-nuget-version")] |
|
|
|
public string NukeArgForceNugetVersion { get; set; } |
|
|
|
public string ForceNugetVersion { get; set; } |
|
|
|
|
|
|
|
public class BuildParameters |
|
|
|
{ |
|
|
|
@ -64,8 +64,8 @@ public partial class Build |
|
|
|
public BuildParameters(Build b) |
|
|
|
{ |
|
|
|
// ARGUMENTS
|
|
|
|
Configuration = b.NukeArgConfiguration ?? "Release"; |
|
|
|
SkipTests = b.NukeArgSkipTests; |
|
|
|
Configuration = b.Configuration ?? "Release"; |
|
|
|
SkipTests = b.SkipTests; |
|
|
|
|
|
|
|
// CONFIGURATION
|
|
|
|
MainRepo = "https://github.com/AvaloniaUI/Avalonia"; |
|
|
|
@ -102,7 +102,7 @@ public partial class Build |
|
|
|
IsNuGetRelease = IsMainRepo && IsReleasable && IsReleaseBranch; |
|
|
|
|
|
|
|
// VERSION
|
|
|
|
Version = b.NukeArgForceNugetVersion ?? GetVersion(); |
|
|
|
Version = b.ForceNugetVersion ?? GetVersion(); |
|
|
|
|
|
|
|
if (IsRunningOnAzure) |
|
|
|
{ |
|
|
|
|