用于生成 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.

26 lines
501 B

6 years ago
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();
}
}