【发布时间】:2021-05-17 17:03:30
【问题描述】:
我的目标是使用 Windows.Security.Credentials.UI 命名空间来创建一个程序,该程序通过用户的 Windows pin 对用户进行身份验证,类似于 Opera Password Manager:
唯一的问题是我无法弄清楚如何将命名空间包含到我的程序中。
我已尝试将其包含在内:
using Windows.Security.Credentials.UI;
但是,这返回了一个错误:
The type or namespace name 'Windows' could not be found (are you missing a using directive or an assembly reference?)
我也尝试将命名空间作为引用包含在内,但我无法在“引用”菜单中找到它。
在C# .NET 4.7.2 控制台应用程序中安装Windows.Security.Credentials.UI 命名空间的正确方法是什么?
【问题讨论】:
标签: c# .net windows windows-runtime