- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
最近,我们的 .Net 客户端 libaray 正在升级以针对 Net 4.0 进行编译。
将目标框架更改为4.0后,应用程序出现一些编译错误。
在 AssemblyInfo.cs
:[assembly: SecurityPermission(SecurityAction.RequestMinimum, Execution = true)]
Error 7 Warning as Error: 'System.Security.Permissions.SecurityAction.RequestMinimum' is obsolete: '"Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."' `
SecurityAction.RequestMinimum
已过时,我们将所有警告视为错误。
最佳答案
来自 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.
关于c#-4.0 - SecurityAction.RequestMinimum 在 .Net 4.0 中已过时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11625447/
任何人都可以解释 SecurityAction 枚举值的含义和目的吗? MSDN 页面不是很清楚。它说 LinkDemand 在即时编译时发生,而 Demand 在运行时发生。 为什么会有区别?在什么
我正在使用 Microsoft.Reporting.Webforms 版本 10 来解析 RDLC 文件并生成 PDF。 RDLC 是一个带有几个嵌入式表达式的简单发票。 当我运行应用程序时,我收到一
我有一个类归因于 [PrincipalPermission(SecurityAction.Demand, Authenticated = true)] public class MyProtecte
我有一个服务中的方法 [PrincipalPermission(SecurityAction.Demand, Role = "ADMIN")] public UserInfo GetUserI
最近,我们的 .Net 客户端 libaray 正在升级以针对 Net 4.0 进行编译。 将目标框架更改为4.0后,应用程序出现一些编译错误。 在 AssemblyInfo.cs : [assemb
从 .NET 3.5 升级某些 ASP.NET 代码时,我收到以下编译警告作为错误: “System.Security.Permissions.SecurityAction.RequestMinimu
我是一名优秀的程序员,十分优秀!