Skip to content

Commit 6388146

Browse files
Add support for Windows 11 24H2 (Hudson Valley) version
Updated `OsBrandHelper` to recognize Windows 11 24H2 (build 26100) with the code name "Hudson Valley." Corresponding test cases were added to ensure correct prettification of version information.
1 parent 8bf752f commit 6388146

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Perfolizer/Perfolizer.Tests/Helpers/OsBrandHelperTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public void WindowsIsPrettified(string originalVersion, string prettifiedName)
4646
[InlineData("10.0.22518", 1012, "Windows 11 (10.0.22518.1012)")]
4747
[InlineData("10.0.22621", 0, "Windows 11 (10.0.22621.0/22H2/2022Update/SunValley2)")]
4848
[InlineData("10.0.22631", 2428, "Windows 11 (10.0.22631.2428/23H2/2023Update/SunValley3)")]
49+
[InlineData("10.0.26100", 1234, "Windows 11 (10.0.26100.1234/24H2/2024Update/HudsonValley)")]
4950
public void WindowsWithUbrIsPrettified(string originalVersion, int ubr, string prettifiedName)
5051
=> Check(OsBrandHelper.Prettify("Windows", originalVersion, ubr.ToString()), prettifiedName);
5152

src/Perfolizer/Perfolizer/Helpers/OsBrandHelper.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ public string ToPrettifiedString(string? ubr)
161161
new Windows1XVersion("21H2", "Sun Valley", null, 22000),
162162
new Windows1XVersion("22H2", "Sun Valley 2", "2022 Update", 22621),
163163
new Windows1XVersion("23H2", "Sun Valley 3", "2023 Update", 22631),
164+
new Windows1XVersion("24H2", "Hudson Valley", "2024 Update", 26100),
164165
};
165166

166167
public static Windows1XVersion? Resolve(string osVersionString)

0 commit comments

Comments
 (0)