Jump to content

"Assembly not available for Mono/NET 3.5" when trying to build project in MonoDevelop


Recommended Posts

I am experienced with Unity and C#, and decided to make mods for KSP. I started with copying stock parts and modifying functionality and/or size, and now i decided to make my own plugins.

I downloaded this, and when i tried building one of the projects included (in MonoDevelop), there was an error saying UnityEngine could not be found. I went to the references tab of the project, and there were error icons in the references: Assembly-CSharp, Assembly-CSharp-firstpass, and UnityEngine. The error in all three were: "Assembly not available for Mono / NET 3.5 (in Mono 2.10.2)". I googled about this and it seems nobody had this problem before (not with KSP, and the non-KSP result i found was solved by changing from .NET 3.5 to .NET 4.0, which does not work with Unity.

I have a mac, with MonoDevelop 2.8.2. Any help is appreciated.

Link to comment
Share on other sites

Did you reference those assemblies in your project? You need to add a reference to UnityEngine.dll and Assembly-CSharp.dll in (KSPRoot)/KSP_Data/Managed/

I didn't made the projects (see the link), and who made them didn't say anything about that, so i assumed everything would be done already. And it was, but they were made in Windows, with Visual Studio (i had to manually open the solution file in a text editor and change version from 12 to 11, as MonoDevelop would open the file as if it was a text file otherwise. Details here.)

By "KSPRoot" you mean the folder that has gamedata inside? If yes, its not here. I did a search for .dll files inside the folder, and the only results are mod plugins. However, i did the same search on my whole computer, and i got several "UnityEngine.dll" and "Assembly-CSharp.dll" files from my Unity projects. I am going to try that...

Link to comment
Share on other sites

By "KSPRoot" you mean the folder that has gamedata inside? If yes, its not here. I did a search for .dll files inside the folder, and the only results are mod plugins.

It's the main directory KSP is in. On my machine (steam/Win7), it's "C:\Program Files (x86)\Steam\SteamApps\common\Kerbal Space Program." So in my case, the DLLs you need to reference are located at "C:\Program Files (x86)\Steam\SteamApps\common\Kerbal Space Program\KSP_Data\Managed". You should not be looking in GameData

Link to comment
Share on other sites

I didn't made the projects (see the link), and who made them didn't say anything about that, so i assumed everything would be done already. And it was, but they were made in Windows, with Visual Studio (i had to manually open the solution file in a text editor and change version from 12 to 11, as MonoDevelop would open the file as if it was a text file otherwise. Details here.)

By "KSPRoot" you mean the folder that has gamedata inside? If yes, its not here. I did a search for .dll files inside the folder, and the only results are mod plugins. However, i did the same search on my whole computer, and i got several "UnityEngine.dll" and "Assembly-CSharp.dll" files from my Unity projects. I am going to try that...

I have just realized all of the files i mentioned earlier are from my BUILT unity projects, from inside the app bundle. It's a mac thing, actually just a folder with stuff inside, stuff that are not meant to be used by end users (but thats not really the case for KSP), and because of that, mac's file searching tool (Spotlight) does not show anything inside app bundles unless you search directly inside them, which is a "feature" i hate. Because those dll files are in my app bundles, they should be in KSP's app bundle too, so i (manually) searched, and they are. So i found out the "KSP_Data" you said is the equivalent to the app bundle in mac. Thanks for the help!

Edit: i started writing this post before you posted your answer. i was looking in the main KSP directory, it was Spotlight behavior that made me not find anything...

Edited by ThermalShark
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...