【发布时间】:2016-07-14 12:53:01
【问题描述】:
我正在尝试将项目移植到 .NET Core,但找不到模拟 System.Security.Permissions。项目使用这样的结构
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")] or
[EnvironmentPermission(SecurityAction.LinkDemand, Unrestricted = true)],
''
【问题讨论】:
-
我相信CoreClr中已经没有了。首先检查需要它们的调用,如果 API 仍然可用,那么在定位 netcoreapp1.0/netstandard 时可能不需要它们。如果您还需要以 net451+ 为目标并且那里需要它们,您可以交叉编译并使用
#ifdefs
标签: asp.net-core asp.net-core-mvc .net-core asp.net-core-1.0