用于生成 Office 文件的 .NET 组件。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
501 B

public class Util
{
public Util(ICakeContext context, BuildParameters build)
{
Context = context;
Build = build;
}
public ICakeContext Context { get; set; }
public BuildParameters Build { get; set; }
public void PrintInfo()
{
Context.Information($@"
Version: {Build.FullVersion()}
Configuration: {Build.Configuration}
");
}
public static string CreateStamp()
{
var seconds = (long)(DateTime.UtcNow - new DateTime(2017, 1, 1)).TotalSeconds;
return seconds.ToString();
}
}