I am building my solutions using MsBuild in a batch file as follows:
@echo off
set msBuildExe="C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe"
set solutionsFile="C:\TestProject\mySln.sln"
rem Build the solutions:
%msBuildExe% /t:Build /p:Configuration=Release /p:Platform=x64 %solutionsFile%
Problem is that I have Multiple Versions of Visual Studio installed and I want to point MsBuild.exe to use the compiler of VS2017.
How can I do that?