在运行时的.NET 4“useLegacyV2RuntimeActivationPolicy”? [英] Set .Net 4 'useLegacyV2RuntimeActivationPolicy' during runtime?
本文介绍了在运行时的.NET 4“useLegacyV2RuntimeActivationPolicy”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有可能在运行时设置的app.config useLegacyV2RuntimeActivationPolicy参数(基本上是之前的受影响组件中的一个被加载?)。
Is it possible to set the app.config useLegacyV2RuntimeActivationPolicy parameter during runtime (basically before one of the 'affected' assemblies is being loaded?).
推荐答案
这可以通过CLR托管API的实现。我这里详细的技术。
This can be done via the CLR Hosting APIs. I detail the technique here.
这篇关于在运行时的.NET 4“useLegacyV2RuntimeActivationPolicy”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文