|
1 | | -C# Script execution engine (.NET Core). Version 4.12.0.1. |
| 1 | +C# Script execution engine (.NET Core). Version 4.13.0.0. |
2 | 2 | Copyright (C) 2004-2023 Oleg Shilo. |
3 | 3 |
|
4 | 4 | Usage: cscs <switch 1> <switch 2> <file> [params] [//x] |
@@ -384,6 +384,15 @@ params Specifies optional parameters for a script file to be run. |
384 | 384 |
|
385 | 385 | -dir:<directory 1>,<directory N> |
386 | 386 | Adds path(s) to the assembly probing directory list. |
| 387 | + Directory probing order: |
| 388 | + 0: script dir |
| 389 | + 1: current dir |
| 390 | + 2: script host/engine dir |
| 391 | + 3: dirs from cmd args |
| 392 | + 4: dirs from code |
| 393 | + 5: dirs from config |
| 394 | + 6: csscript special dirs, e.g. cache dir |
| 395 | + The precise runtime order can be discovered by executing the script with the -verbose switch. |
387 | 396 | You can use the reserved word 'show' as a directory name to print the configured probing directories. |
388 | 397 | (e.g. cscs -dir:C:\MyLibraries myScript.cs; cscs -dir:show). |
389 | 398 |
|
@@ -447,14 +456,19 @@ params Specifies optional parameters for a script file to be run. |
447 | 456 | Prints list of supported commands (arguments) as well as the custom commands defined by user. |
448 | 457 | -cmd:x - Prints detailed information of the custom commands defined by user. |
449 | 458 |
|
450 | | --list|-ls [<kill|k> | <kill-all|ka> |
| 459 | +-list|-ls [<kill|k> | <kill-all|ka|*> |
451 | 460 | Prints list of all currently running scripts. |
452 | 461 | If script execution tracking is undesirable you can disable it by setting DisableCSScriptProcessTracking |
453 | 462 | environment variable to a non empty value. |
454 | 463 | kill|k - Allow user to select and terminate any running script. |
455 | 464 | * - Terminate all running scripts when 'kill' option is used. |
456 | 465 | (e.g. cscs -list kill * ). |
457 | 466 |
|
| 467 | +-kill> |
| 468 | + Terminates all instances of running scripts and CS-Script build services. |
| 469 | + This command is the easiest way of ensuring no CS-Script files are locked. |
| 470 | + E.g. before updating CS-Script installation. |
| 471 | + |
458 | 472 | --------- |
459 | 473 |
|
460 | 474 |
|
@@ -649,22 +663,31 @@ file - name of the script or assembly file implementing precompiler. |
649 | 663 | This directive is used to specify the CS-Script precompilers to be loaded and exercised against script at run time |
650 | 664 | just before compiling it. Precompilers are typically used to alter the script coder before the execution. Thus |
651 | 665 | CS-Script uses built-in precompiler to decorate classless scripts executed with -autoclass switch. |
652 | | -(see http://www.csscript.net/help/precompilers.html |
| 666 | +(see http://www.csscript.net/help/precompilers.html) |
653 | 667 | ------------------------------------ |
654 | 668 | //css_searchdir <directory>; |
655 | 669 |
|
656 | 670 | Alias - //css_dir |
657 | 671 |
|
658 | 672 | directory - name of the directory to be used for script and assembly probing at run-time. |
659 | 673 |
|
660 | | -This directive is used to extend set of search directories (script and assembly probing). |
661 | | -The directory name can be a wildcard based expression.In such a case all directories matching the pattern will be this |
662 | | -case all directories will be probed. |
| 674 | +This directive is used to extend the set of search directories (script and assembly probing). |
| 675 | +The directory name can be a wildcard-=based expression. In such a case all directories matching the pattern will be |
| 676 | +this case all directories will be probed. |
663 | 677 | The special case when the path ends with '**' is reserved to indicate 'sub directories' case. Examples: |
664 | 678 |
|
665 | 679 | //css_dir packages\ServiceStack*.1.0.21\lib\net40 |
666 | 680 | //css_dir packages\** |
667 | 681 |
|
| 682 | +Directory probing order: |
| 683 | + 0: script dir |
| 684 | + 1: current dir |
| 685 | + 2: script host/engine dir |
| 686 | + 3: dirs from cmd args |
| 687 | + 4: dirs from code |
| 688 | + 5: dirs from config |
| 689 | + 6: csscript special dirs, e.g. cache dir |
| 690 | +The precise runtime order can be discovered by executing the script with the -verbose switch. |
668 | 691 | ------------------------------------ |
669 | 692 | //css_winapp |
670 | 693 |
|
|
0 commit comments