I added reference of Script# to my standart console application. After that I was trying to invoke some method from there but was getting the following error:

I suppose it happened on the following line:
string[] lines = s.Split(';');
My assumption is that usual mscorlib library has not method public string[] Split(char separator), but has public string[] Split(params char[] separator)
Is it possible to write valid code with such string operations both for a Script# project and for a standart C# .NET project? Due to this problem I have to write duplicate code for both projects with minimal difference.
P.S. I tried to use assemblty binding redirects, as discussed in this SO question, but it didn’t help me.
I found solution!
My sequence of actions:
Create
Splitmethod of string splitting in any Script# class.Define conditional compilation symbol DOTNET in your .NET project.
Add As Link file with
Splitmethod from Script# to .NET project and also add as link another necessary dependent files.After that appropriate code will be selected dependent on DOTNET symbol, which defined only in .NET project. Other similar methods, not only with strings, can be rewritten in the same way.