Book Image

Azure DevOps Server 2019 Cookbook - Second Edition

By : Tarun Arora, Utkarsh Shigihalli
Book Image

Azure DevOps Server 2019 Cookbook - Second Edition

By: Tarun Arora, Utkarsh Shigihalli

Overview of this book

Previously known as Team Foundation Server (TFS), Azure DevOps Server is a comprehensive on-premise DevOps toolset with a rich ecosystem of open source plugins. This book will help you learn how to effectively use the different Azure DevOps services. You will start by building high-quality scalable software targeting .NET, .NET Core and Node.js applications. Next, you will learn techniques that will help you to set up end-to-end traceability of your code changes, from design through to release. Whether you are deploying software on-premise or in the cloud in App Service, Functions, or Azure VMs, this book will help you learn release management techniques to reduce failures. As you progress, you will be able to secure application configuration by using Azure Key Vault. You will also understand how to create and release extensions to the Azure DevOps marketplace and reach the million-strong developer ecosystem for feedback. Later, the working extension samples will even allow you to iterate changes in your extensions easily and release updates to the marketplace quickly. By the end of this book, you will be equipped with the skills you need to break down the invisible silos between your software development teams, and transform them into a modern cross-functional software development team.
Table of Contents (14 chapters)
Title Page
About Packt
Contributors
Preface
Index

Consuming a NuGet package in Visual Studio from the Artifacts feed


In the previous recipe, we learned how to create a NuGet package and publish it to Artifacts in Azure DevOps Server. In this recipe, we will look at how we can consume the NuGet package in Visual Studio.

Getting ready

The recipe is a continuation of the previous Publishing a NuGet package to Artifacts recipeIf you have not read it, then we recommend that you go through it before continuing.

How to do it...

Let's examine how we can consume the NuGet package in Visual Studio by performing the following steps.

Connecting to the feed in Artifacts

  1. Go to Artifacts and select the correct feed (if you have multiple feeds); then, copy the package source URL, as follows:
  1. Open Visual Studio, go to the Tools menu, and then select Options:
  1. In the Options window, go to Package Sources and click on the + icon in the top-right corner to add a new package source. Provide a name for the source and then paste in the copied URL from Step 1. Finally...