The type name RegistryKey could not be found in namespace Microsoft.Win32, why?

Thomas Fischer 21 Reputation points
2020-07-29T01:06:07.683+00:00

I tried one of the examples to read user names from the registry and received this response from Visual Studio 2019: The type name RegistryKey could not be found in namespace Microsoft.Win32. The example can be found under Registry.Users Field. The version of windows I am using is Windows 10 Home.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,297 questions
{count} votes