title: TFS On-Prem Build Agent Using Old Version Of NuGet.exe
body: <p>We are hosting TFS 2017 Update 2 on-prem, and using on-prem build agents. The latest version of NuGet.exe is currently 4.3.0, but our build agents always default to using v4.0.0. How can I get our build agents to use the latest version of NuGet.exe?</p>
  
  <p>We need to update because <code>NuGet restore</code> is failing when using v4.0.0, but works with v4.3.0, since we are dealing with new .Net Standard 2.0 packages. On our build server I was able to do <code>NuGet.exe update -self</code> to update the NuGet.exe found at <code>C:\Builds\_work\_tool\NuGet\4.0.0\x64\nuget.exe</code> from 4.0.0 to 4.3.0, but that <code>C:\Builds\_work\_tool</code> directory regularly gets deleted and recreated, so this isn't a persistent workaround.</p>
  
  <p>How can I get our build agents to always use the latest version of NuGet.exe, or at least v4.3.0?</p>