We have a Visual Studio project in Azure Devops. We are using VS2019.
The build was working with this project. However, earlier this week the build stopped working. The error message is below.
I checked the build server. The .Net framework 4 is installed. Also, the project framework has not changed.
It looks like the MSBUILD is trying to use VS2022.
How can I change the build to use the VS2019 MSBUILD? How is this set?
How can I correct the below error?
##[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
