I'm calling the "Nuget Restore Task" and "Nuget Update Task" before I build Solution B in a TFS CI Build definition. Solution B references the Nuget Package created from Solution A which I built prior to Solution B.
I also have a retention policy for my CI Nuget packages so only the last 5 packages are kept.
The point of this is for Solution B to also build using the latest CI Nuget package for Solution A.
If the Nuget package for Solution A which is referenced by Solution B exists this all works. If the Nuget package for Solution A has been removed from the store the "Nuget Restore Task" fails. This means that the "Nuget Update Task" does not get a chance to execute which would update the Solution A reference to the latest Nuget package.
Does anyone have any suggestions for making this work? Or perhaps an alternative approach?