Add Version to settings
This commit is contained in:
parent
5a23b4c49c
commit
f49d8838fd
2 changed files with 5 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
||||||
class Settings
|
class Settings
|
||||||
{
|
{
|
||||||
public static ICakeContext Cake { get; set; }
|
public static ICakeContext Cake { get; set; }
|
||||||
|
public static string Version { get; set; }
|
||||||
public static string BuildTarget { get; set; }
|
public static string BuildTarget { get; set; }
|
||||||
public static string Assembly { get; set; }
|
public static string Assembly { get; set; }
|
||||||
public static List<GAssembly> AssemblyList { get; set; }
|
public static List<GAssembly> AssemblyList { get; set; }
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
// VARS
|
// VARS
|
||||||
|
|
||||||
Settings.Cake = Context;
|
Settings.Cake = Context;
|
||||||
|
Settings.Version = "3.22.24.10";
|
||||||
Settings.BuildTarget = Argument("BuildTarget", "Default");
|
Settings.BuildTarget = Argument("BuildTarget", "Default");
|
||||||
Settings.Assembly = Argument("Assembly", "");
|
Settings.Assembly = Argument("Assembly", "");
|
||||||
|
|
||||||
|
@ -18,7 +19,7 @@ Task("Init")
|
||||||
.Does(() =>
|
.Does(() =>
|
||||||
{
|
{
|
||||||
// Assign some common properties
|
// Assign some common properties
|
||||||
msbuildsettings = msbuildsettings.WithProperty("Version", "3.22.24.9");
|
msbuildsettings = msbuildsettings.WithProperty("Version", Settings.Version);
|
||||||
msbuildsettings = msbuildsettings.WithProperty("Authors", "'GtkSharp Contributors'");
|
msbuildsettings = msbuildsettings.WithProperty("Authors", "'GtkSharp Contributors'");
|
||||||
msbuildsettings = msbuildsettings.WithProperty("PackageLicenseUrl", "'https://github.com/cra0zy/GtkSharp/blob/cakecore/LICENSE'");
|
msbuildsettings = msbuildsettings.WithProperty("PackageLicenseUrl", "'https://github.com/cra0zy/GtkSharp/blob/cakecore/LICENSE'");
|
||||||
|
|
||||||
|
@ -117,7 +118,8 @@ Task("PackageTemplates")
|
||||||
var settings = new NuGetPackSettings
|
var settings = new NuGetPackSettings
|
||||||
{
|
{
|
||||||
BasePath = "Source/Templates/NetCore/GtkSharp.Template.CSharp",
|
BasePath = "Source/Templates/NetCore/GtkSharp.Template.CSharp",
|
||||||
OutputDirectory = "BuildOutput/NugetPackages"
|
OutputDirectory = "BuildOutput/NugetPackages",
|
||||||
|
Version = Settings.Version
|
||||||
};
|
};
|
||||||
|
|
||||||
NuGetPack("Source/Templates/NetCore/GtkSharp.Template.CSharp/GtkSharp.Template.CSharp.nuspec", settings);
|
NuGetPack("Source/Templates/NetCore/GtkSharp.Template.CSharp/GtkSharp.Template.CSharp.nuspec", settings);
|
||||||
|
|
Loading…
Reference in a new issue