Showing posts with label Package Restore. Show all posts
Showing posts with label Package Restore. Show all posts

Tuesday, April 29, 2014

Should you use NuGet Package Restore on your Build Server?

In my opinion, no.

Recently, Mark Seemann wrote a terrific article regarding the dangers of using NuGet package restores on a build server. I highly recommend that you take a moment to read the whole article, but here are the major pros and cons that Mark offers to summarize the argument:

  • The Package Restore feature solves these problems:
    • It saves a nickel per repository in storage costs.
    • It saves time when you clone a new repository, which you shouldn't be doing that often.
  • On the other hand, it
    • adds complexity
    • makes it harder to use custom package sources
    • couples your ability to compile to having a network connection
    • makes it more difficult to copy a code base
    • makes it more difficult to set up your development environment
    • uses more bandwidth
    • leads to slower build times
    • just overall wastes your time

Having recently had this exact same debate at work I feel the need to chime in! I think that Mark's list really address the larger issue at core of this debate:

Real Time Web Analytics