SecurityAction.RequestMinimum is obsolete in .Net 4.0

后端 未结 2 1611
北海茫月
北海茫月 2021-02-07 11:19

Recently, our .Net client libaray is upgrading to compile against Net 4.0. After change the target framework to 4.0, the application has some compilation error.

In

2条回答
  •  借酒劲吻你
    2021-02-07 11:34

    From MSDN:

    In the .NET Framework version 4, runtime support has been removed for enforcing the Deny, RequestMinimum, RequestOptional, and RequestRefuse permission requests. These requests should not be used in code that is based on .NET Framework 4 or later.

    So, just remove it.

提交回复
热议问题