Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-core/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net core .NET核心中的模拟系统.Security.Permissions_Asp.net Core_Asp.net Core Mvc_.net Core_Asp.net Core 1.0 - Fatal编程技术网

Asp.net core .NET核心中的模拟系统.Security.Permissions

Asp.net core .NET核心中的模拟系统.Security.Permissions,asp.net-core,asp.net-core-mvc,.net-core,asp.net-core-1.0,Asp.net Core,Asp.net Core Mvc,.net Core,Asp.net Core 1.0,我正在尝试将项目移植到.NET Core,但找不到模拟System.Security.Permissions。这个项目使用这样的结构 [PermissionSetAttributeSecurityAction.LinkDemand,Name=FullTrust]或 [EnvironmentPermissionSecurityAction.LinkDemand,Unrestricted=true], 因为所有代码都是在完全信任的情况下有效运行的,所以删除这些属性就足够了 如果您确实想限制某些代码,

我正在尝试将项目移植到.NET Core,但找不到模拟System.Security.Permissions。这个项目使用这样的结构

[PermissionSetAttributeSecurityAction.LinkDemand,Name=FullTrust]或 [EnvironmentPermissionSecurityAction.LinkDemand,Unrestricted=true],

因为所有代码都是在完全信任的情况下有效运行的,所以删除这些属性就足够了

如果您确实想限制某些代码,建议:

使用操作系统提供的安全边界,例如用于运行具有最少权限集的进程的用户帐户

因为所有代码都是在完全信任的情况下有效运行的,所以删除这些属性就足够了

如果您确实想限制某些代码,建议:

使用操作系统提供的安全边界,例如用于运行具有最少权限集的进程的用户帐户


我相信在CoreClr里已经没有了。首先检查需要它们的调用,如果API仍然可用,那么在目标为netcoreapp1.0/netstandard时可能不需要它们。如果您还需要以net451+为目标,并且它们是必需的,那么您可以交叉编译并使用ifdefsI,相信CoreClr中已经没有了。首先检查需要它们的调用,如果API仍然可用,那么在目标为netcoreapp1.0/netstandard时可能不需要它们。如果您还需要以net451+为目标,并且需要它们,那么您可以交叉编译并使用ifdef