title: What causes this error during our DevOps build
body: <p>We have a Visual Studio project in Azure Devops. We are using VS2019.</p>
  <p>The build was working with this project. However, earlier this week the build stopped working. The error message is below.</p>
  <p>I checked the build server. The .Net framework 4 is installed. Also, the project framework has not changed.</p>
  <p>It looks like the MSBUILD is trying to use VS2022.</p>
  <p>How can I change the build to use the VS2019 MSBUILD? How is this set?</p>
  <p>How can I correct the below error?</p>
  <pre><code>##[error]C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1217,5): 
  
  Error MSB3644: The reference assemblies for .NETFramework,Version=v4.5 were not found
  </code></pre>