Python for .NET compilation for .NET3.5 and Python3.x

五迷三道 提交于 2019-12-07 18:54:31

Latest pythonnet is using HashSet from CLR 4.0 and also dynamic from DLR which cannot be easily backported to older .NET versions.

What you can do is redirect your other DLLs from .NET 3.5 to CLR 4.0 using app.config:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <startup useLegacyV2RuntimeActivationPolicy="true">
        <supportedRuntime version="v4.0"/>
    </startup>
</configuration>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!