Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

Commit 3fb514b

Browse files
author
Jérémie Bertrand
authored
Add thanks to beolutz and info on KeepScriptsSeparated
1 parent 582cfdd commit 3fb514b

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,27 @@ public class MyGreeter : IGreeter
5757

5858
It is also possible to passes arguments to the script with the ScriptArgs property of the options:
5959
```cs
60-
var catalog = new ScriptCsCatalog("Scripts", new ScriptCsCatalogOptions { ScriptArgs = new[] { "-loglevel", "INFO" } }
60+
var catalog = new ScriptCsCatalog("Scripts", new ScriptCsCatalogOptions { ScriptArgs = new[] { "-loglevel", "INFO" } });
6161
```
6262
It can be helpful with the use of Script Packs.
6363

6464
**Script Packs**
6565

66-
Script Packs can be used the location varies depending on the approach used:
66+
Script Packs can be used, the location varies depending on the approach used:
6767
- script by script: the packages location is the current directory of your application
6868
- folder: the packages location is the folder specified
6969

70+
**Load script one by one**
71+
72+
By default all scripts are loaded in one file to be interpreted by ScriptCS, but it can be source of issues like when [alias are used](https://github.com/scriptcs-contrib/scriptcs-mef/issues/10).
73+
74+
The `KeepScriptsSeparated` option allow to load script one by one and remove these issues:
75+
76+
```cs
77+
var catalog = new ScriptCsCatalog("Scripts", new ScriptCsCatalogOptions { KeepScriptsSeparated = true });
78+
```
79+
7080
## Contributors
7181

72-
Thanks to [Glenn Block](https://github.com/glennblock) Script Packs can be used!
82+
Thanks to [Glenn Block](https://github.com/glennblock) Script Packs can be used!
83+
Thanks to [beolutz](https://github.com/beolutz) for the custom file system support and KeepScriptsSeparated option.

0 commit comments

Comments
 (0)