There might have been a situation when some package reference in your project are not found when you copy it to a different machine.

To solve this, we generally add referenced libraries into source control.

Should we do the same with packages and add them to source control? The answer, No. Including  binaries can grow the repository size like crazy over time, making cloning more and more painful. NuGet 2.0 solves all of these issues for you in a simple manner.

If you have a solution that is either already using NuGet packages, and then all you have to do is right click on the Solution node in Solution Explorer and select Enable NuGet Package Restore.

Enable NuGet Package Restore Context Menu item

This will download any resource that is missing into the packages folder every time the project is complied.

Related Links

Advertisements

Share your thoughts

Please log in using one of these methods to post your comment:

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