'C:\Program' not found

Monkey Targets Forums/XNA/'C:\Program' not found

Wiering(Posted 2015) [#1]
Whenever I try to compile something for Xna, I get the following error.

"D:/Monkey/bin/transcc_winnt" -target=Xna_Game -config=Debug -run "D:/Monkey/bananas/mak/smoothscroll/smoothscroll.monkey"
TRANS monkey compiler V1.85
Parsing...
Semanting...
Translating...
Building...
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
TRANS FAILED: Error executing 'C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe /t:MonkeyGame /p:Configuration=Debug MonkeyGame.sln', return code=1
Done.


Soap(Posted 2015) [#2]
Hi Mike, I remember you from Dexterity/IG!

The problem sound like a spaces/quotes problem somewhere. Try editing your config.winnt.txt and make sure it looks right with MSBuild. Maybe try adding the MSBuild binary to your path too. You could also try changing the MSBuild link in the config.winnt.txt to the short version without spaces "C:\PROGRA~2\MSBuild\12.0\Bin\MSBuild.exe"


Wiering(Posted 2015) [#3]
Hi Soap, thanks!
Strangely, commenting out the first line (the one with ${PROGRAMFILES} in it makes it work.