-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
20 lines (17 loc) · 1012 Bytes
/
Copy pathDirectory.Build.props
File metadata and controls
20 lines (17 loc) · 1012 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<Project>
<PropertyGroup>
<!--
Single source of truth for every packable Devity.* project's version. CI computes one
timestamp per publish run and passes it to every project via -p:PackageVersion=..., so
packages that reference each other via ProjectReference (e.g. Devity.Mailing ->
Devity.Extensions) always bake in a dependency version that's actually being published in
that same run. Without this, each project independently evaluating DateTime.Now produced
slightly different timestamps across separate CI jobs, so a downstream package could require
a version of its dependency that was never published.
Local `dotnet build`/`dotnet pack` without the override still falls back to the current
timestamp, same as before.
-->
<PackageVersion Condition="'$(PackageVersion)' == ''">$([System.DateTime]::Now.ToString("yyyy.MM.dd.HHmm"))</PackageVersion>
<AssemblyVersion>$(PackageVersion)</AssemblyVersion>
</PropertyGroup>
</Project>