项目中缺少 System.Web.Security

missing System.Web.Security in project

我正在使用 .Net core 3.1 开发一个网络项目。 我需要在登录操作中使用 FormsAuthentication.SetAuthCookie,当我添加 使用 System.Web.Security 投射它的未知数。我不能添加这个使用。 我阅读了所有有关的帖子,但仍然无法解决这个问题。

我研究了很多参考资料,最后结果就是这样: System.Web.Security 仅适用于 .net 框架,在核心中没有其他选择,或者我找不到它。