Merge pull request #91 from badcel/BuildScriptParameter
Respect configuration parameter
This commit is contained in:
commit
76cbe40848
1 changed files with 6 additions and 5 deletions
11
build.cake
11
build.cake
|
@ -9,6 +9,7 @@ Settings.Cake = Context;
|
|||
Settings.Version = "3.22.24.30";
|
||||
Settings.BuildTarget = Argument("BuildTarget", "Default");
|
||||
Settings.Assembly = Argument("Assembly", "");
|
||||
var configuration = Argument("Configuration", "Release");
|
||||
|
||||
var msbuildsettings = new DotNetCoreMSBuildSettings();
|
||||
var list = new List<GAssembly>();
|
||||
|
@ -42,7 +43,7 @@ Task("Prepare")
|
|||
DotNetCoreRestore("Source/Tools/Tools.sln");
|
||||
DotNetCoreBuild("Source/Tools/Tools.sln", new DotNetCoreBuildSettings {
|
||||
Verbosity = DotNetCoreVerbosity.Minimal,
|
||||
Configuration = "Release"
|
||||
Configuration = configuration
|
||||
});
|
||||
|
||||
// Generate code and prepare libs projects
|
||||
|
@ -75,7 +76,7 @@ Task("Build")
|
|||
{
|
||||
var settings = new DotNetCoreBuildSettings
|
||||
{
|
||||
Configuration = "Release",
|
||||
Configuration = configuration,
|
||||
MSBuildSettings = msbuildsettings
|
||||
};
|
||||
|
||||
|
@ -94,7 +95,7 @@ Task("RunSamples")
|
|||
{
|
||||
var settings = new DotNetCoreBuildSettings
|
||||
{
|
||||
Configuration = "Release",
|
||||
Configuration = configuration,
|
||||
MSBuildSettings = msbuildsettings
|
||||
};
|
||||
|
||||
|
@ -109,7 +110,7 @@ Task("PackageNuGet")
|
|||
var settings = new DotNetCorePackSettings
|
||||
{
|
||||
MSBuildSettings = msbuildsettings,
|
||||
Configuration = "Release",
|
||||
Configuration = configuration,
|
||||
OutputDirectory = "BuildOutput/NugetPackages",
|
||||
NoBuild = true,
|
||||
|
||||
|
@ -160,7 +161,7 @@ Task("PackageAddin")
|
|||
// Build MonoDevelop addin
|
||||
var msbuildsettings = new MSBuildSettings
|
||||
{
|
||||
Configuration = "Release",
|
||||
Configuration = configuration,
|
||||
};
|
||||
msbuildsettings = msbuildsettings.WithProperty("Version", Settings.Version);
|
||||
msbuildsettings = msbuildsettings.WithProperty("MDBinDir", "/opt/MonoDevelop/bin/");
|
||||
|
|
Loading…
Reference in a new issue