Really easy to use vs extension-nuget

Source: Internet
Author: User

I was bored when I got online through my mobile phone. I didn't understand what it was. I was totally shocked when I had a real experience. It was so awesome!

Nuget is an extension of Visual Studio. It can be used to install and upgrade open source libraries and tools.

Official website address: http://www.nuget.org/

The most striking position on the official website is the download link. After the installation is complete, we will try it out quickly.

There is a small project in the hand that needs to use the JSON format. Generally, I will first Google whether there is any relevant open source Library (this is certainly there ).

Then I found json.net from some blog posts, and then continued Google, found the json.net official website, and then downloaded the latest stable version to find the DLL file to reference it.

Is it complicated? Complicated? (In fact, I always thought it was very convenient to do this without using nuget)

With nuget, we can do it quickly.

Right-click managet nuget packages

Search for JSON, and then check the results and the introduction on the right. json.net ranks first, and click Install.

Then, wait until the download is complete. You can see that json.net is already in the reference.

So what exactly does nuget do? Where is the downloaded open source library? You can see the output.

Find the DLL file in the packages folder.

You can also select the command line mode.

For example, enter install-package newtonsoft. JSON.

Another advantage of nuget is that it can process dependencies (I personally think that the dependency complexity of net is not complicated by Java ). Taking spring. Core as an example, it depends on common. logging.

Naturally, nuget is perfect.

 

I did not try to upgrade the library, but I personally feel that nuget still has some limitations.

First, you need to connect to the Internet (in fact, you can build your own server... i'm so careless. Thank you for all of you.) Next, we download new ones every time and we will try different things.. Net versions are all down.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.