在我的代码中,我收到了关于这两行的警告:
[assembly:SecurityPermissionAttribute(SecurityAction.RequestMinimum, UnmanagedCode=true)]
[assembly:PermissionSetAttribute(SecurityAction.RequestMinimum, Name = "FullTrust")]
这些是警告:
S:\Nimrod\src\WinUI\Components\Syncfusion.Grid\AssemblyInfo.cs(38,39): warning CS0618: '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.'
S:\Nimrod\src\WinUI\Components\Syncfusion.Grid\AssemblyInfo.cs(39,34): warning CS0618: '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.'
我查看了警告消息中提到的链接,但不清楚如何处理迁移过时的方法。这里的另一个问题表明我应该删除它们,但我对该解决方案持怀疑态度,我相信我应该用一些东西来替换它们,而不仅仅是彻底删除它们。
我应该如何进行?