C# project adding dll have error.

Hi there. CE 5.4. Trying add to my C# project some packages Reactive Extension. And i always have error like:

Code: Select all

System.IO.FileNotFoundException: Could not load file or assembly 'System.Reactive.Linq, Version=3.0.3000.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263' or one of its dependencies.
File name: 'System.Reactive.Linq, Version=3.0.3000.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263'

I tried search about this issue in Reactive forums but didn't help. May be in Cry projects there is no way to add some other packages

Re: C# project adding dll have error.

add exe another dll search path at runtime.

Code: Select all

class MypluginClass{
static MyPluginClass()
string currentPath = Environment.GetEnvironmentVariable("PATH", EnvironmentVariableTarget.Process);
string dllPath = Environment.CurrentDirectory + Path.DirectorySeparatorChar + "Assets" + Path.DirectorySeparatorChar + "Plugins";
if(currentPath.Contains(dllPath) == false)
Environment.SetEnvironmentVariable("PATH", currentPath + Path.PathSeparator + dllPath, EnvironmentVariableTarget.Process);

uint id = 0;
void Start () {
MyPluginClass plug = new MyPluginClass (); //So instantiate a call to your class which calls the constructor automagically
id = SS.uStart (); //static dll function calls.

Who is online

Users browsing this forum: Bing [Bot] and 1 guest