We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55124bc commit 3b943f5Copy full SHA for 3b943f5
1 file changed
src/SponsorLink/Directory.Build.props
@@ -15,7 +15,11 @@
15
16
<!-- Roslyn caches analyzers aggressively so we are better off using a very dynamic version number
17
for local builds where a quick devloop is key. We bump version every 10 seconds -->
18
- <Version>42.42.$([System.Math]::Floor($([MSBuild]::Divide($([System.DateTime]::Now.TimeOfDay.TotalSeconds), 10))))</Version>
+ <Epoc>$([System.DateTime]::Parse("2024-03-15"))</Epoc>
19
+ <TotalDays>$([System.DateTime]::UtcNow.Subtract($(Epoc)).TotalDays)</TotalDays>
20
+ <Days>$([System.Math]::Truncate($(TotalDays)))</Days>
21
+ <Seconds>$([System.Math]::Floor($([MSBuild]::Divide($([System.DateTime]::UtcNow.TimeOfDay.TotalSeconds), 10))))</Seconds>
22
+ <Version>42.$(Days).$(Seconds)</Version>
23
24
<Product>SponsorableLib</Product>
25
</PropertyGroup>
0 commit comments