cs-script
cs-script copied to clipboard
C# scripting platform
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,...
### 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...
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...
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:...
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...
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,...
UNC
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...
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...
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...
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,...