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

  1. public class Util
  2. {
  3. public Util(ICakeContext context, BuildParameters build)
  4. {
  5. Context = context;
  6. Build = build;
  7. }
  8. public ICakeContext Context { get; set; }
  9. public BuildParameters Build { get; set; }
  10. public void PrintInfo()
  11. {
  12. Context.Information($@"
  13. Version: {Build.FullVersion()}
  14. Configuration: {Build.Configuration}
  15. ");
  16. }
  17. public static string CreateStamp()
  18. {
  19. var seconds = (long)(DateTime.UtcNow - new DateTime(2017, 1, 1)).TotalSeconds;
  20. return seconds.ToString();
  21. }
  22. }