0
我可以在ASP.NET Core 2.0应用程序中引用RegistryKey类,但不能在Console .NET 2.0 Core App中引用。这是为什么?RegistryKey可以在ASP.NET Core 2.0应用程序中引用,但不在Console .NET 2.0 Core应用程序中
当我尝试在RegistryKey中引用OpenBaseKey()(一种静态方法)时,出现以下编译错误。
The name 'RegistryKey' does not exist in the current context
我使用VS2017,我的项目是针对.NET Core 2.0(非标准2.0)。