fix build (warn): Only use Registry on windows

This commit is contained in:
John Colvin committed 2024-07-09 15:14:29 -04:00
1 parent e1526e25a7
commit d7bf82722b
1 file changed
+3
@@ -1,4 +1,6 @@
using System;
using System.Runtime.Versioning;
using Microsoft.Win32;
namespace BCG
@@ -10,6 +12,7 @@ namespace BCG
rk.SetValue (name, value.ToString ());
}
[SupportedOSPlatform("windows")]
public static double getValue (RegistryKey rk, string name)
{
object v = rk.GetValue (name);