sudo apt-get for Visual Studio 2010

Microsoft is getting better and better at copying what is really cool from the other non Microsoft worlds.

The news of the day is the release of NuPack, a Package Manager for visual studio project. It allows via command line to add packages to your existing application and it works really well.

Let’s say you have a web project and you want to start to use NLog on that project. 

Until today you had to download the library from the NLog site (http://nlog-project.org/download), copy the dll in a folder inside your solution, Open your web project, add a reference to the dll, update the web.config to make it work, with some trial and error.

Starting from today, given you have installed NuPack (http://nupack.codeplex.com/), the only thing you have to do is open the Package Manager Console (View->Other Windows) select your web project, type Add-Package NLog and you’re done.

image

The web.config is automatically updated, the dll is automatically downloaded in a folder called packages and a reference is added to your project.

image

Alternatively, if you do not like to use the command line console, you can right click on the project references folder and select Add Package Reference and you’ll see a list of packages you can add to the project.

image

image

This is probably one of the best thing I’ve seen ever Smile

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s