title: Updating NuGet reference in a different repo in Azure DevOps
body: <p>I have set up a multi-repo in Azure DevOps using Git. Assume I have 2 repos (Repo A and B) for simplicity.</p>
  
  <p>Repo A's outcome is a common library DLL. Repo B references Repo A's generated DLL (via a NuGet package).</p>
  
  <p>The CD pipeline of Repo A pushes the NuGet package (which was packed during the CI pipeline of Repo A) to my Azure Artifacts feed.</p>
  
  <p>Is there a way to add a task in the CD pipeline of Repo A to automatically change the NuGet package reference (to a newer version) in the project of Repo B? This way, when Repo B gets pulled on the local repository, the reference would be updated instead of going through the NuGet Package Manager and updating manually in Visual Studio?</p>
  
  <p><strong>Update:</strong></p>
  
  <p>After applying your suggestions, everything is working perfectly except the fact that when I pull the changes of RepoB to my local repo, the new NuGet package of Repo A is not available in the packages folder [of Repo B] and I have to manually get it from the Package Manager.  </p>
  
  <p>Pre-Build event helps here but I want Repo B be fully up-to-date upon pulling from Azure Repos.</p>
  
  <p>Below is the CD pipeline of Repo A.</p>
  
  <p><a href="https://i.stack.imgur.com/CLe8I.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CLe8I.jpg" alt="enter image description here"></a></p>