我经常被这个刺痛,当然总是在最糟糕的时刻。当我编辑 xaml 文件时,我收到此错误
(System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.)
我在 devenv.exe.config 中 添加了推荐的元素
<configuration>
<runtime>
<loadFromRemoteSources enabled="true" />
</runtime>
</configuration>
这应该摆脱它,但对我不起作用。我应该在别处添加这个吗?系统如何首先知道这是从 Internet 下载的?我怎样才能摆脱那个警告?