C# Script execution engine (.NET Core). Version 4.13.1.0. Copyright (C) 2004-2023 Oleg Shilo. Usage: cscs [params] [//x] file Specifies name of a script file to be run. params Specifies optional parameters for a script file to be run. //x Launch debugger just before starting the script. --------- --help|-help|-? [||<-out:>] Displays either generic or command specific help info. - one of the supported CLI commands cli - print documentation for all CLI commands syntax - print the complete documentation for scripting syntax md - print the documentation in GitHub markdown format (e.g. -help cli:md) - output file for the help content Reversed order of parameters for the command specific help is also acceptable. The all following argument combinations print the same help topic for 'cache' command: -help cache -? cache -cache help -cache ? -e Compiles script into console application executable. Note this switch will force the use of dotnet compiler as csc is not capable of building executable assemblies. Thus //css_engine and -engine options will always be ignored. -ew Compiles script into Windows application executable (applicable only on Windows). Note this switch will force the use of dotnet compiler as csc is not capable of building executable assemblies. Thus //css_engine and -engine options will always be ignored. -rx Run script as an external process. This option is incompatible with VB scripts. This mode allows execution of the scripts that are otherwise incompatible with the runtime of the script engine (e.g. x86 vs x64, .NETCore vs .NETFramework). Note, this execution mode comes with some limitations (depending on the compilation engine): - csc The compiled script is executed with dotnet.exe launcher (e.g. dotnet script.dll). - dotnet The compiled script is executed directly as exe(e.g. script.exe). - roslyn This mode is not supported as Roslyn scripts do not support static main. -c[:<0|1>] Executes compiled script cache (e.g. /script.cs.dll) if found. This command improves performance by avoiding compiling the script if it was not changed since last execution. -c:1|-c - enable caching -c:0 - disable caching (which might be enabled globally) -ca Compiles script file into cache file (e.g. /script.cs.dll). -cd Compiles script file into assembly (.dll) in the script folder without execution. -check Checks script for errors without execution. -proj Shows script 'project info' - script and all its dependencies. An internal-use version of this command '-proj:csproj' can be also useful for troubleshooting. -vs