oleg-shilo / cs-script

C# scripting platform
http://www.cs-script.net
MIT License
1.57k stars 234 forks source link

csscripter hangs on compilation step #321

Closed eugene-vv closed 1 year ago

eugene-vv commented 1 year ago

Hi Oleg, We found that simple script with error hangs cscs on compilation.

using System; 
class MyClass
{
    public static void Main()
    {
        throw new Ex ception();
    }
}

Running cscs script.cs hangs. We checked that 4.4.7 works, 4.4.8 and 4.4.9 hangs. Will it be possible to provide binaries for .Net6? Happy new year!

oleg-shilo commented 1 year ago

Sorry @eugene-vv, But releasing binaries targeting older versions of runtime is not a viable option.

Thus you can either just use the older version of CS-Script or recompile the script engine by yourself. You may need to adjust the build file to use the corresponding compiler: image