如何在 Python 中使用 NuGet 包?

问题描述

我们在 Azure Artifacts 中有一个 NuGet 包,我们希望在我们的 Python 代码中使用它。 我们可以在 Python 中使用 DLL 和 NuGet 库中的程序集,但在这里我们特别想使用另一个团队在 Azure Artifacts 上构建和部署的 NuGet 包。

以下是我们目前能够编写的代码:

import clr
import unittest

clr.AddReference("System.Security.Cryptography.Algorithms")

def test(self):
    self.assertTrue(issubclass(type(System.Security.Cryptography.MD5.Create()),System.Security.Cryptography.MD5))

unittest.main()

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)