如何使用 Azure DevOps REST Api 从我的 powershell 控制台将文件上传到 Azure Artifacts?

How can I upload a file to Azure Artifacts from my powershell console using Azure DevOps REST Api?

我想使用 Rest API 将文件上传到 Azure Artifacts。我可以吗?

我们使用本地 Azure DevOps Server 2019。

请注意,它不是 nuget 或 npm 包。它只是一个文件。

It is not a nuget or an npm package. It is just a file.

如果你要上传的是文件而不是包,在Azure devops中,恐怕只有Universal package可以存储文件。

但是,问题是 Azure devops 服务器的通用包 does not supported。它现在只支持 azure devops 服务。

在我们的官方论坛中,有这样的suggestion提出要求在Azure devops中添加此功能server/TFS。您可以在那里投票并分享您的需求以提高其优先级。我们的产品组会定期审查它,以考虑将某些功能纳入开发计划。