简体   繁体   English

.NET Core 3.1 / .NET 5.0 中的 System.Security.CodeAccessPermission 是否已过时?

[英]Is System.Security.CodeAccessPermission obsolete in .NET Core 3.1 / .NET 5.0?

I know that CAS is obsolete in .NET Core 3.1 / .NET 5.0 .我知道CAS 在 .NET Core 3.1 / .NET 5.0 中已过时

Is System.Security.CodeAccessPermission also obsolete? System.Security.CodeAccessPermission也过时了吗? I was unable to find any reliable information about it on Internet.我无法在互联网上找到任何关于它的可靠信息。 The documentation don't say anything about it, and just a few methods - like the Deny() method - are marked as obsolete on the docs . 文档没有说任何关于它的内容,只有一些方法——比如Deny()方法—— 在 docs 上被标记为过时的

Assuming that they are all obsolete - and that's why I couldn't find any current articles or books about it, - what should I use instead?假设它们都已过时 - 这就是为什么我找不到任何关于它的最新文章或书籍 -我应该使用什么来代替? Can you please point me to some docs or books that discuss the current state of code access security on .NET Framework 4.8 / Core 3.1 / 5.0?您能否指点我一些讨论当前 state 在 .NET Framework 4.8 / Core 3.1 / 5.0 上的代码访问安全性的文档或书籍? I couldn't find any!我找不到任何东西!

Thanks!谢谢!

Copied from the comment.从评论中复制。

There can be significant delay between code change and documentation update.代码更改和文档更新之间可能存在显着延迟。 So we should focus on the code first, which is available on GitHub .所以我们应该首先关注代码,它在GitHub上可用。 From there we can see this type only becomes obsolete in .NET 5.从那里我们可以看到这种类型仅在 .NET 5 中过时。

To migrate away from obsolete types, you can follow the guide .要摆脱过时的类型,您可以按照指南进行操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 MacOS、.Net Core 3.1 /.Net 5.0 上看不到 C# 中的系统环境变量。 (视觉工作室) - Do not see system environment variables in C# on MacOS, .Net Core 3.1 / .Net 5.0. (Visual Studio) .NET中框架代码中的CodeAccessPermission - CodeAccessPermission in framework code in .Net .NET Core 3.1 - EntityFrameworkCore - DBContext.Query 已过时 - .NET Core 3.1 - EntityFrameworkCore - DBContext.Query obsolete 将 .NET Core 3.1 迁移到 .NET 5.0,AzureFunctions,无法将输入参数 'req' 转换为类型 'System.Net.Http.HttpRequestMessage - Migrating .NET Core 3.1 to .NET 5.0, AzureFunctions, Cannot convert input parameter 'req' to type 'System.Net.Http.HttpRequestMessage' 将 ASP.NET Core 3.1 迁移到 .NET 5.0 - Migrate ASP.NET Core 3.1 to .NET 5.0 ASP.NET CORE 5.0 TLS 1.2 在 linux 上问题,但在 asp.net 核心 3.1 上工作 - ASP.NET CORE 5.0 TLS 1.2 issue on linux but on asp.net core 3.1 are working .NET 5.0 SettingsSerializeAs.Binary 已过时 - .NET 5.0 SettingsSerializeAs.Binary obsolete 使用 .NET 5.0 中的类型,同时保持与 .NET Core 3.1 等早期 .NET 版本兼容 - Use types from .NET 5.0 while remaining compatible with earlier .NET versions like .NET Core 3.1 System.Security.Cryptography.Pkcs 命名空间是否内置 .NET 5.0? - Is System.Security.Cryptography.Pkcs namespace built-in .NET 5.0? 将安全标头添加到 ASP.NET 核心 3.1 Web Api - Adding Security Headers to ASP.NET Core 3.1 Web Api
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM