Vinicius
Vinicius

Reputation: 1711

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.

Is System.Security.CodeAccessPermission also obsolete? 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.

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? I couldn't find any!

Thanks!

Upvotes: 5

Views: 1680

Answers (1)

Lex Li
Lex Li

Reputation: 63264

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. From there we can see this type only becomes obsolete in .NET 5.

To migrate away from obsolete types, you can follow the guide.

Upvotes: 1

Related Questions