cs-script icon indicating copy to clipboard operation
cs-script copied to clipboard

C# scripting platform

Results 38 cs-script issues
Sort by recently updated
recently updated
newest added

I've been using cs-script off and on for quite a few years now, and recently I've gotten quite confused with all the options on the market: cs-script, [dotnet-script](https://github.com/dotnet-script/dotnet-script), [Roslyn/CLI/REPL](https://learn.microsoft.com/en-us/archive/msdn-magazine/2016/january/essential-net-csharp-scripting) mumbo-jumbo,...

done

### Scenario: I use cs-scipt in hosted model. My solution contains a (static) library[*1] (which will later be referenced by the runtime script code) with mostly functions but also some...

question
Investigation

I tried `"C:\cs-script\netcore\cs-script.win.v4.4.7.0\cscs.exe" -e -engine:csc "MyScript.cs"` but if MyScript.cs contains `//css_co -nullable:enable -warnaserror:nullable`, then it gives `error MSB1001: Unknown switch.` This makes me think it is not using the csc...

enhancement

I tried `//css_co -nullable:enable` but it gives no error or warning for `string abc = null;` OS: Windows Server 2012 R2 Standard .NET version: 6.0.x cs-script version: 4.4.7 Compiler engine:...

question

In an hosted environment I would like to use path variables (e.g `//css_include $(SomeDirectoryPath)/my_script.csx`) for the directories of the included script. Like you could do in MsBuild with properties. The...

question

hi Unload assembly crashes with System.ExecutionEngineException if garbage collection happened between script compilation and unloading. Simplest example: var assembly = CSScript.Evaluator .With(eval => eval.IsAssemblyUnloadingEnabled = true) .CompileCode(@"public int Sum(int a,...

Investigation

I'm trying to use a script by using an UNC path. This gives a filenotfoundexception but the file exist. Even the user rights seem to be correct. Is there a...

question

Under some circumstances the command line for running the csc.exe becomes way too long to be started with Process.Start(). OK, this limit usually is 32KiB, but having many referenced assemblies...

enhancement
question

This is a new behavior from my perspective. This might not be tied to chocolately at all...but it's how i installed cs-script so it might be relevant. I'm getting these...

enhancement

Using 4.8.12.0 test.cs ``` //css_precompiler Precompiler.cs; using System; class Program { static void Main(){ System.Console.WriteLine("Hello"); } } ``` Precompiler.cs ``` public class Precompiler { public static bool Compile(ref string code,...

defect