How to automate nuget updates?
Zohar Peled

Zohar Peled @peledzohar

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

Location:
Israel
Joined:
Sep 9, 2019

How to automate nuget updates?

Publish Date: May 5 '20
3 7

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.

Comments 7 total

    • Zohar Peled
      Zohar PeledMay 6, 2020

      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)

  • coder8576
    coder8576Oct 26, 2023

    How did you end up doing this? I'm looking to do the same thing and haven't found any good solutions yet.

    • Zohar Peled
      Zohar PeledOct 30, 2023

      I didn't have too much time back then to check it out, so I've left the subject.
      Finally I've ended up switching to a different work place where we have DevOps people to handle this... Sorry for not being able to help more.

Add comment