因此,我经常会被刺痛,当然,总是在最糟糕的时刻。
当我编辑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中添加了recommended元素
<configuration>
<runtime>
<loadFromRemoteSources enabled="true" />
</runtime>
</configuration>
应该摆脱它,但对我不起作用。
我应该在其他地方添加吗?
系统如何首先知道它是从Internet下载的?
我如何摆脱该警告?
最佳答案
我也将XML添加到其他配置文件(XDesProc.exe.config和XDesProc.exe.appx.config)中,它为我解决了这个问题:
(来源:http://www.sehajpal.com/index.php/2010/10/how-to-solve-loadfromremotesources-error-in-vs-2010/)
(类似的问题:WPF designer fails to load in VS 11 beta)
关于wpf - 已启用loadFromRemoteSources =“true”//XAML设计器//VS 11 beta和2012 RC,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/10224585/