NuGet Version Control Workflow

With the release of NuGet 1.6 we now get the ability to control the importing of dependent packages at build time through the injection of a custom .target file into each project within the Visual Studio solution. This may seem unusual for teams that use Team Foundation Server for version control as we typically like to see those binaries included as part of the check-in process into the usual lib/dependencies/third-party (delete as appropriate) folder.

So why have the NuGet team done this? Well mainly for the DVCS teams as their repositories can grow quite large with all these binary check-ins causing merges to take significant amounts of time. But even if you don’t use a DVCS such as Git or Mercurial simply having this option available to us for any version control workflow is simply awesome in my opinion. I think I’ll be checking out how it works for comparison on an upcoming small project.

For now if you want to use the “source control free” workflow you can enable it at the solution level.

 

NuGet just continues to get better and better and with one of the Project Leads Phil Haack now working at GitHub I’m even more excited to see where the product goes. Further information on this new feature is available on the NuGet docs site here.

Advertisement

About Darren

I’m a Software Developer from Birmingham in the UK. I work primarily with Microsoft technologies which for pretty much everyone nowadays that means .NET. I do however like to step outside the distortion field as often as possible to soak up some of the Open Source goodness. Of late this has been mainly javascript and HTML5 as I'm fascinated by the direction the web will be taking over the next few years with the onslaught of the mobile platforms. Finally the world is catching up. If only more people had enjoyed the goodness that was the HP TC1100 so many years back! Most of my development is done in C# producing bespoke business applications. For the last five years this was for an IT services company but I’m now working in the IT department on some exciting work for a large UK institution. I’m not going to name them here as although the majority of this blog will be about the projects I’m working on and the knowledge I gain (and mistakes I make!) with them they are entirely my own opinions.
This entry was posted in Uncategorized. Bookmark the permalink.

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 )

Connecting to %s