bur*_*1ce 2 .net-core asp.net-core visual-studio-2017
我可以在ASP.NET Core 2.0应用程序中引用RegistryKey类,但不能在Console .NET 2.0 Core App中引用.这是为什么?
当我尝试在RegistryKey中引用OpenBaseKey()(静态方法)时,我收到以下编译错误.
The name 'RegistryKey' does not exist in the current context
Run Code Online (Sandbox Code Playgroud)
我正在使用VS2017,我的项目是针对.NET Core 2.0(不是标准2.0).