From 3b943f5aa59f33141d1c0fffcb215446d594ad53 Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Mon, 17 Jun 2024 22:45:51 -0300 Subject: [PATCH] Improve versioning of sample package 42.[days-since-epoc].[day-seconds] This makes it ever-incrementing automatically. --- src/SponsorLink/Directory.Build.props | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/SponsorLink/Directory.Build.props b/src/SponsorLink/Directory.Build.props index c0a3e42..8afa061 100644 --- a/src/SponsorLink/Directory.Build.props +++ b/src/SponsorLink/Directory.Build.props @@ -15,7 +15,11 @@ - 42.42.$([System.Math]::Floor($([MSBuild]::Divide($([System.DateTime]::Now.TimeOfDay.TotalSeconds), 10)))) + $([System.DateTime]::Parse("2024-03-15")) + $([System.DateTime]::UtcNow.Subtract($(Epoc)).TotalDays) + $([System.Math]::Truncate($(TotalDays))) + $([System.Math]::Floor($([MSBuild]::Divide($([System.DateTime]::UtcNow.TimeOfDay.TotalSeconds), 10)))) + 42.$(Days).$(Seconds) SponsorableLib