0

I'm testing Script# right now and created a simple Script# class library with a single class.

The class has a method that does something like this:

public static string[] SplitName(string name)
{
    return name.Split(' ');
}

It compiles fine and generates the JS output file but when I reference this assembly from my NUnit project and try to test it a MissingMethodException is thrown.

System.MissingMethodException : Method not found 'System.String[] System.String.Split(Char)'.

What am I doing wrong?

1
  • I suppose solution from my answer. Commented Nov 7, 2012 at 22:12

1 Answer 1

0

Remember that even when it is a valid .net assembly, it references a custom mscorlib.dll. See my answer to your other question to see the way I do it. Is it possible to write code in C# and use Script# to share it between .NET assemblies and JavaScript?

Sign up to request clarification or add additional context in comments.

1 Comment

Adding link to the github issue on the same topic for reference github.com/nikhilk/scriptsharp/issues/199

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.