Jump to content

Problem with collections


Recommended Posts

Hello, my setup is somehow broken.

It compiles fine and the resulting plugin worked also in KSP. But then after adding a code snipped which iterates over a list I get:

[ERR 15:12:28.039] ADDON BINDER: Cannot resolve assembly: System.Collections, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

[ERR 15:12:28.040] ADDON BINDER: Cannot resolve assembly: System.Collections, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

[EXC 15:12:28.042] FileNotFoundException: Could not load file or assembly 'System.Collections, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
	BaseEvent.Invoke ()
	UIPartActionButton.OnClick ()
	UnityEngine.Events.InvokableCall.Invoke (System.Object[] args)
	UnityEngine.Events.InvokableCallList.Invoke (System.Object[] parameters)
	UnityEngine.Events.UnityEventBase.Invoke (System.Object[] parameters)
	UnityEngine.Events.UnityEvent.Invoke ()
	UnityEngine.UI.Button.Press ()
	UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData)
	UnityEngine.EventSystems.ExecuteEvents.Execute (IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData)
	UnityEngine.EventSystems.ExecuteEvents.Execute[IPointerClickHandler] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.EventFunction`1 functor)
	UnityEngine.EventSystems.EventSystem:Update()

I am using Ubuntu 16.04, KSP 1.2, Monodevelop using runtime "Mono 4.2.1".

Link to comment
Share on other sites

13 hours ago, Fendrin said:

I don't really know. How can I adjust it?

edit: found it, but I can't go below 4.0.

What do you use to compile ? You may have to install 3.5 by hand. 4.0 will not work properly in KSP

Link to comment
Share on other sites

2 minutes ago, sarbian said:

What do you use to compile ? You may have to install 3.5 by hand. 4.0 will not work properly in KSP

apt-get install monodevelop mono-reference-assemblies-3.5 referenceassemblies-pcl

with the repository mentioned in the KSPwiki enabled.

Maybe referenceassemblies-pcl needs to be downgraded?

Link to comment
Share on other sites

22 hours ago, Fendrin said:

Monodevelop using runtime "Mono 4.2.1"

4 hours ago, sarbian said:

4.0 will not work properly in KSP

Quote

Mono 4.0.0 Release Notes

Highlights
  • We dropped support for the 2.0, 3.5 and 4.0 assemblies

If you need .NET 3.5 target (and you probably do), you could install a mono 3.x snapshot with a source like:

deb http://download.mono-project.com/repo/debian wheezy/snapshots 3.12/main
deb http://download.mono-project.com/repo/debian 312-security main

Seems to work for me, I just built FAR with it...

4 hours ago, Fendrin said:

apt-get install monodevelop mono-reference-assemblies-3.5 referenceassemblies-pcl

mono-reference-assemblies-3.5 doesn't exist in the mono-project repo, where'd you get it? if it's a stock Ubuntu package I doubt it'll work properly with the (newer) mono-project packages.

Note I run Debian, not Ubuntu... but they do say those packages are for Ubuntu too. Remove any distro packages first to avoid conflicts.

Edited by steve_v
Stupid editor syntax highlighting
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...