Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/lang/dotnet/files/0002-Fix-assembly-version-calculation-in-2026.patch
28097 views
1
From 22c9a70c8e0fe6a30190430d93f12fa29a304288 Mon Sep 17 00:00:00 2001
2
From: Viktor Hofer <[email protected]>
3
Date: Mon, 5 Jan 2026 11:43:26 +0100
4
Subject: [PATCH] Fix FileVersion calculation in 2026
5
6
Issue: https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/issues/3388
7
8
---
9
build/common.props | 19 ++++++++++++++++++-
10
1 file changed, 18 insertions(+), 1 deletion(-)
11
12
diff --git a/build/common.props b/build/common.props
13
index efd7e90e..e5f6f3ed 100644
14
--- a/build/common.props
15
+++ b/build/common.props
16
@@ -42,7 +42,24 @@
17
<VersionSuffix Condition="'$(WilsonVersion)' == ''">$(PreviewVersionSuffix)</VersionSuffix>
18
<VersionPrefix Condition="'$(WilsonVersion)' == ''">$(WilsonCurrentVersion)</VersionPrefix>
19
<FileVersion Condition="'$(WilsonVersion)' != '' and '$(IsCustomPreview)' != 'true' ">$(WilsonVersion).$([System.DateTime]::Now.AddYears(-2019).Year)$([System.DateTime]::Now.ToString("MMdd"))</FileVersion>
20
- <FileVersion Condition="'$(WilsonVersion)' == ''">$(WilsonCurrentVersion).$([System.DateTime]::Now.AddYears(-2019).Year)$([System.DateTime]::Now.ToString("MMdd"))</FileVersion>
21
+ <!-- TODO: Makes sure that the revision is higher than what's in already shipped packages (> 61231).
22
+ This will overflow in 2029 though and needs a long term fix. -->
23
+ <FileVersion Condition="'$(WilsonVersion)' == ''">$(WilsonCurrentVersion).$([MSBuild]::Add(
24
+ 61232,
25
+ $([MSBuild]::Add(
26
+ $([MSBuild]::Add(
27
+ $([MSBuild]::Multiply(
28
+ $([System.DateTime]::Now.AddYears(-2019).Year),
29
+ 416
30
+ )),
31
+ $([MSBuild]::Multiply(
32
+ $([System.DateTime]::Now.ToString("MM")),
33
+ 32
34
+ ))
35
+ )),
36
+ $([System.DateTime]::Now.ToString("dd"))
37
+ ))
38
+ ))</FileVersion>
39
</PropertyGroup>
40
41
<PropertyGroup>
42
--
43
2.52.0.windows.1
44
45