loading...

How to automate nuget updates?

peledzohar profile image Zohar Peled ・1 min read

In the company I work for we host a nuget service, containing mostly infrastructure Dlls and stuff like that.

Every once in a while someone makes a braking change to a service one of these Dlls is talking with (not necessarily the same Dll every time), so that all applications and services using that dll must update the nuget reference, update their own version, rebuild, and either be published to nuget themselves, or installed as services on the client's server.

Currently, we do that manually - opening each solution in VS, and as I'm sure you can guess, that process is both extremely annoying and time consuming.

I'm looking for a way to automate this entire thing - preferably using c# to do all the heavy lifting for us - update the relevant package, update the version number, and rebuild. Of course this should be configurable - what projects to handle and what packages to update.

So before I start making suggestions to my team leader about wanting to build such a thing - I thought I'd better ask around if anyone knows of such a tool already existing out there (doesn't even have to be a free tool), preferably an open source c# so that we could mess around with it's internals if need to.

Thanks in advance,
Zohar.

Posted on by:

peledzohar profile

Zohar Peled

@peledzohar

By day, try to work. By night, try to sleep.

Discussion

pic
Editor guide
 
 

Thanks - this helps with several things - updating a specific nuget to a specific version, rebuilding the project and even publishing it (btw, wouldn't that work only for .Net core? we still have some older framework projects...) - but I didn't see where and how I can automate the version number increase... any pointers on that (if I still have to manually open VS it's kind of a deal breaker - and I don't really want to have to manipulate files programmatically either if I can avoid it)

 

Thanks, I'll give it a shot when I'll find the time...

 

And upgrade is automatic when you use those commands... Check the docs...