nuget - 如何仅使用 dll 在 Azure DevOps 中创建工件提要

标签 nuget azure-artifacts

我发现我们可以通过 YAML 中的 buildPackPush 任务在 Azure DevOps 管道中创建私有(private) Artifact feed 当我们有源代码时的流水线。 enter image description here

但现在我可以访问一个第三方 dll(但不是源代码),它将被所有其他 .Net 解决方案引用。 有人可以帮助我如何仅使用 dll 而不访问源代码来创建 Artifact feed。

最佳答案

在这种情况下,您可以使用 dll 文件创建通用包而不是 Nuget。

支持 Azure CLI 和 Azure Pipeline 任务发布和下载通用包。

Azure CLI:https://learn.microsoft.com/en-us/azure/devops/artifacts/quickstarts/universal-packages?view=azure-devops

Azure Pipeline 中的通用包任务:https://learn.microsoft.com/en-us/azure/devops/pipelines/artifacts/universal-packages?toc=%2Fazure%2Fdevops%2Fartifacts%2Ftoc.json&bc=%2Fazure%2Fdevops%2Fartifacts%2Fbreadcrumb%2Ftoc.json&view=azure-devops&tabs=classic

选择 dll 文件作为“要发布的文件的路径”

enter image description here

关于nuget - 如何仅使用 dll 在 Azure DevOps 中创建工件提要,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73521440/

相关文章:

azure-devops - Azure DevOps 项目管道无法从不同项目中的工件源访问 NuGet 包

.net - 私有(private) nuget 源 github 返回 401 并提供正确的凭据

powershell - 从NuGet安装SignalR(Newtonsoft.Json的问题)

c# - VSTS 版本 : Create Release using c# NuGet package

Azure devops Artifacts - 无法获取源

nuget - 使用 .NET CLI 将 NuGet 包推送到 VSTS

azure-devops - 如何将 Yarn 注册表用作 Azure DevOps 工件上游源?

tfs - NuGet 和 TFS 最佳实践

c# - 如何使用来自 nuget 的包在 Mono 中构建 C# 程序?

nuget - 内部 NuGet Feed - 文件夹与 IIS