摘要: VS2010中编译一个开源库,错误提示信息如下:重写成员“SharpVectors.Renderers.Forms.SvgCacheManager.GetCacheInfo(System.Uri)”时违反了继承安全性规则。重写方法的安全可访问性必须与所重写方法的安全可访问性匹配。 解决方法其实很简单,在项目中AssemblyInfo.cs文件里加上如下信息即可: [assembly: System.Security.SecurityRules(System.Security.SecurityRuleSet.Level1)] 引发该错误的原因可参考微软MSDN http://msdn.mic.. 阅读全文
posted @ 2012-08-02 21:28 遥望星空 阅读(3542) 评论(2) 推荐(1) 编辑