O'Reilly logo

NuGet 2 Essentials by Dejan Dakić, Damir Arh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Manually adding third-party library references

In this chapter we will describe the most common way a developer finds a library and adds it to a solution. For the sake of simplicity, let us create a console application that will retrieve and parse an JSON result from a web service, for example, Google query search.

Let us start by creating a new console application:

  1. In Visual Studio 2012, navigate to File | New Project.
  2. In the New Project dialog, choose the Console Application Visual C# template.
    Manually adding third-party library references
  3. Let us name our solution CH1_01_GoogleApiSearcher, and start writing some code as shown:
     class Program { static void Main() { var request = "https://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=nuget"; ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required