VSTS和NuGet [英] VSTS and NuGet
问题描述
我是VSTS新手,并试图了解如何使用它。
Im new to VSTS and trying to learn how to use it.
我有一个Visual Studio中的解决方案,链接到我的GitHub Repo。是否可以在VSTS中采用解决方案,打包到NuGet并推送到我的Octopus Deploy服务器进行部署。
I have a solution in Visual Studio which is linked to my GitHub Repo. Is it possible in VSTS to take the solution, package into a NuGet and push to my Octopus Deploy server for deployment.
我已经安装了Package Management和Octopus Extension,但是我我很难找到一种方法将这个打包从Repo中推出并推出。
I have installed Package Management and the Octopus Extension, but i'm struggling to find a way to have this packaged up from the Repo and push out.
任何帮助都会非常感谢
Any help would be really appreciated
谢谢
推荐答案
嗨Tommy,
Hi Tommy,
首先,你需要在构建定义中从GitHub获取源代码。
First, you need to get sources from GitHub in your build definition.
然后,安装
Octopus Deploy Integration 扩展,并在构建定义中将任务包应用程序和任务推送包添加到Octopus。请参阅以下链接以了解如何使用这些任务:
Then, install Octopus Deploy Integration extension, and add task Package Application, and task Push Package(s) to Octopus in your build definition. Please refer to the link below to get how to use these tasks:
https://octopus.com/docs/api-and-integration/tfs-vsts/using-octopus-extension
您的构建定义应该如下面的截图:
Your build definition should look like the screenshot below:
祝你好运,
这篇关于VSTS和NuGet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!