All scripts fail?

I simply want to use the scripts that come with Unity but instead I get a “Error: Framework ‘Mono / .NET 3.5′ not installed. (Assembly-CSharp-firstpass)” on the MonoDevelop and on the MonoDevelop Message Log it says “mscorlib assembly not found for framework”. These errors occur with scripts that come with Unity (Camera Scripts, General Scripts and Utility Scripts) but also with any other script.

try to re-instal the unity,, maybe some file are missing,,

I've got the same problem. Somebody found a solution to this?

Are you on Mac OSX or windows? I know how to fix stuff like this on mac. If windows, try reinstalling .net on your computer.

1 Answer

1

Counter to what @mdaniels5757 suggests, re-installing .net is not needed. Unity uses Mono for it’s environment. Instead, poke about your editor install folder. There should be a folder somewhere called Frameworks, with many folders, two of which are Mono and MonoBleedingEdge. These should contain the mscorlib.dll files that MonoDevelop is complaining about. On a Mac I have:

graham$ pwd
/Applications/Unity/Unity.app/Contents
graham$ find . | grep mscorlib.dll$
./Frameworks/Mono/lib/mono/2.0/mscorlib.dll
./Frameworks/Mono/lib/mono/micro/mscorlib.dll
./Frameworks/Mono/lib/mono/unity/mscorlib.dll
./Frameworks/Mono/lib/mono/unity_web/mscorlib.dll
./Frameworks/MonoBleedingEdge/lib/mono/2.0/mscorlib.dll
./Frameworks/MonoBleedingEdge/lib/mono/4.0/mscorlib.dll
./Frameworks/MonoBleedingEdge/lib/mono/unity/mscorlib.dll
./Frameworks/MonoBleedingEdge/lib/mono/unity_web/mscorlib.dll

My guess is some AV software has taken an exception to one of these.

On Windows 8 the core lib is not included in the folder. Perhaps its only included in apple environments. But it worked to install .NET 3.5. Obviously it is not enough to have a higher version of .NET (I usually avoid installing older verisons of software). Thanks for your help!