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.