When attempting to debug in MonoDevelop, this error appears upon compilation:
Error Error:
System.IO.FileNotFoundException: Could
not find file ‘C:\Documents’. (Error:
System.IO.FileNotFoundException)
(Assembly-UnityScript-firstpass)
The compiler is obviously not enclosing a path in quotes, stopping at the first space in “Documents and Settings…”. None of the projects assets are located there, so i’m guessing it’s looking for some configuration settings in the MonoDevelop Application Data folder.
Where can i find whatever it is that is referencing this path? And how can I fix it?
I’m guessing the problem is you’re using the backslash character, which escapes the string for commands (
= newline, \ = tab, etc… ), use \\ to actually have the character \ in a string.
It is because your Enviromental Variables TEMP and TMP are set to “C:\Documents and Settings\%username%” by default.
After I changed them to “C:\ emp” the problems are solved.
I too had this problem and it was solved by changing my TMP and TEMP variables to a folder without a space in it. In Vista this is found under Control Panel > System > Advanced System Settings > Environment Variables.