Skip to content

Commit 9448c91

Browse files
committed
Update TrakerrClient
Update versioning info to catch .net runtime 4.7.
1 parent 159274d commit 9448c91

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

IO.TrakerrClient/TrakerrClient.cs

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -372,28 +372,21 @@ private static string Get45PlusFromRegistry()
372372
// Checking the version using >= will enable forward compatibility.
373373
private static string CheckFor45PlusVersion(int releaseKey)
374374
{
375+
if (releaseKey >= 460798)
376+
return "4.7";
375377
if (releaseKey >= 394802)
376-
return "4.6.2 or later";
378+
return "4.6.2";
377379
if (releaseKey >= 394254)
378-
{
379380
return "4.6.1";
380-
}
381381
if (releaseKey >= 393295)
382-
{
383382
return "4.6";
384-
}
385-
if ((releaseKey >= 379893))
386-
{
383+
if (releaseKey >= 379893)
387384
return "4.5.2";
388-
}
389-
if ((releaseKey >= 378675))
390-
{
385+
if (releaseKey >= 378675)
391386
return "4.5.1";
392-
}
393-
if ((releaseKey >= 378389))
394-
{
387+
if (releaseKey >= 378389)
395388
return "4.5";
396-
}
389+
397390
// This code should never execute. A non-null release key should mean
398391
// that 4.5 or later is installed.
399392
return "No 4.5 or later version detected";

0 commit comments

Comments
 (0)