gpt4 book ai didi

c# - "Unverifiable code failed policy check"用于闭源程序集

转载 作者:行者123 更新时间:2023-12-02 17:24:48 26 4
gpt4 key购买 nike

我尝试在 MSI 安装例程期间从 C# 程序的资源流动态加载一些(购买的)程序集,但收到“无法验证的代码未通过策略检查”。

我在线阅读了一些有关使用/clr:safe 编译嵌入式程序集的提示,但我没有该选项。有没有办法解决此策略检查?

谢谢。

最佳答案

加载无法验证的代码的唯一方法是来自禁用验证的完全信任进程(或者可能是应用程序域)。

编辑:这不是我编造的,one of the C# language designers said "Unverifiable code requires full trust and is generally to be avoided"

关于c# - "Unverifiable code failed policy check"用于闭源程序集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2612128/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com