I have written code to customize the compile-command to use MSBuild.exe if a .vcxproj file is found in the current directory for c-mode files via a c-mode-common-hook. Since MSBuild is not in the path my code sets compile command so that it includes the full path and file name of MSBuild.exe. This is obtained from the Windows registry.
The final compile command is for example
"\"C:\\Program Files (x86)\\MSBuild\\12.0\\bin\\amd64\\MSBuild.exe\" \"JAWSCore.vcxproj\" /p:Configuration=Debug"
The problem is that when I do a M-x compile I get the following error.
'C:\Program' is not recognized as an internal or external command, operable program or batch file.
Is there a way to resolve this issue or would I be better off modifying my code to simply add the directory containing MSBuild to the exec-path and then simply setting compile command to the following.
"MSBuild.exe JAWSCore.vcxproj /p:Configuration=Debug"