I’m no to unity and am working on my first game. But I can’t get the MonoDevelop to run in debug because I get these two errors but there is no info about it.
Error Error: System.IO.FileNotFoundException: Could not find file ‘C:\Users\Tim’. (Error: System.IO.FileNotFoundException) (Assembly-UnityScript)
I guessed that, since I did move the project, the reason I’m stumped is I can’t find any references to any file with a path starting to "C:\Users\Tim " I was hoping there was some rabbit hole I didn’t know about that had the full list of files in it.
The issue has to do with the projects Assembly-UnityScript, Assembly-UnityScript-Editor-firstpass, and Assembly-UnityScript-firstpass. If I delete them from the solution, the game builds fine and connects to Unity. Then later while I’m debugging they magically show up again and have to be deleted before I can build again. A coworker of mine is making a different game and doesn’t even have those projects at all. What do they do?
I’ve got this exact same problem too. Anybody else got it resolved?
When I import a package (e.g. Character Controller) Monodevelop starts throwing up this problem. Remove the package and monodevelop compiles fine. You can actually compile with these errors - but it plays havoc with detection of real errors in scripts which only then show up in Unity.
Can’t work out if this is a Unity problem or a Monodevelop problem.
This problem only happens when you try and compile Javascript.
I code in C# but obviously my project breaks the moment I import some packages that contain Javascript (most of the Unity default packages do so).
Again, this simply appears to be a case of Unity not properly handling Windows usernames with spaces in them. I have included a screenshot of the exact fail situation in an empty project, note that my windows username folder contains a space, e.g. “Jules Smith” yet it’s clearly stopping at the space and just picking up the name “Jules”, hence giving a file not found error.
This is simple stuff, requiring a simple fix, but infuriating and not encouraging for my first foray into Unity. Do I really want to switch my entire game development over to something like Unity which has such crippling unpatched bugs?
There doesn’t appear to be a way to log bug reports with Unity?
I have contacted support anyhow, will be a good test on how competently/quickly they resolve the issue. High time this was sorted out, as somebody else pointed out in another thread it could be as simple as enclosing the path name in quotes within their code!
Response from big chief: “This bug got reported to us on 26th October as case 425264. Our MD lead has this bug assigned and it is scheduled to be fixed for the 3.5 release. I’d be the first to agree that this bug is pretty annoying and needs to be fixed.”
This might be a revival of an old thread / problem, and it might be fixed already, but I haven’t looked at the Patch Notes yet. I still want to post how I fixed the problem since this was the thread that most closely matched my query. I was getting this error after I clicked Build even though it was working just fine up until I changed the name of my Build file - Windows .exe to something long.
"FileNotFoundException: Temp\StagingArea\My-build-filename-that-was-much-longer-than-this-working_Data\Mono\etc\mono\1.0\DefaultWsdlHelpGenerator.aspx does not exist
Then when launching the .exe, it would just crash.
It sounds similar to what the previous posts above suggested, so I changed the name of the file to something much shorter, and the Build worked and did not crash. Hope this helps!
Sorry to lift this topic up again, but I have a very similar issue:
Trying to build my first Onward Custom Map with Unity, I encounter this Error:
DirectoryNotFoundException: Could not find a part of the path “/Users/myname/Documents/Programming/Unity/Projects/FirstOnwardCustomMap/TempUnityBuild/thumbnail.png”.
I am working on a Mac and have already granted full disc access to Unity, but Unity is not able to create this directory TempUnityBuild.
As soon as I do it, it starts building indeed, thumbnail.png is create and some files more, but the next issue comes up by producing the following error:
FileNotFoundException: \Users\myname\Documents\Programming\Unity\Projects\FirstOnwardCustomMap\Assets..\TempUnityBuild\custom_Android.map does not exist
When you look into the directory, there is a file named custom_android.map, but not with a capital A as it is searching for. When I change that letter, the same error occurres.
Is there a solution to this annoying problem?
Thank you in advance!
P.S.: No, I do not have spaces in my directory names, but what I find puzzling is that in the first error, it is using slashes between the subdirectories and there are quotation marks around it, in the second no quotation and it uses backslashes.