【发布时间】:2021-03-18 18:36:25
【问题描述】:
我们希望在 Python 代码中使用 Azure Artifacts 中的 NuGet 包。 我们能够在 Python 中使用来自 NuGet 库的 DLL 和程序集,但在这里我们特别想使用另一个团队在 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()
【问题讨论】:
-
你在使用 Docker 吗?如果是,请检查此问题:stackoverflow.com/questions/61099159/…
标签: python azure nuget azure-artifacts