Set .Net 4 'useLegacyV2RuntimeActivationPolicy' during runtime?

橙三吉。 提交于 2019-12-23 15:03:50

问题


Is it possible to set the app.config useLegacyV2RuntimeActivationPolicy parameter during runtime (basically before one of the 'affected' assemblies is being loaded?).


回答1:


This can be done via the CLR Hosting APIs. I detail the technique here.



来源:https://stackoverflow.com/questions/3750253/set-net-4-uselegacyv2runtimeactivationpolicy-during-runtime

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!