Skip to content

Commit f562a6c

Browse files
authored
Merge pull request #665 from Maximetinu/improve-documentation-#664
Improve documentation to answer #664
2 parents 09d3ff9 + ef0ae23 commit f562a6c

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,14 @@ Instead of `main.csx` which is the default, we now have a file named `custom.csx
145145
146146
### Running scripts
147147

148-
Scripts can be executed directly from the shell as if they were executables.
148+
You can execute your script using **dotnet script** or **dotnet-script**.
149+
150+
```bash
151+
dotnet script foo.csx
152+
dotnet-script foo.csx
153+
```
154+
155+
On OSX/Linux, scripts can be executed directly from a shell as if they were executables.
149156

150157
```bash
151158
foo.csx arg1 arg2 arg3
@@ -164,7 +171,9 @@ The OSX/Linux shebang directive should be **#!/usr/bin/env dotnet-script**
164171
Console.WriteLine("Hello world");
165172
```
166173

167-
You can execute your script using **dotnet script** or **dotnet-script**, which allows you to pass arguments to control your script execution more.
174+
On Windows, you can run **dotnet register script** to achieve a similar behaviour. This register dotnet-script in the Windows registry as the tool to process .csx files.
175+
176+
You can pass arguments to control your script execution more.
168177

169178
```bash
170179
foo.csx arg1 arg2 arg3

0 commit comments

Comments
 (0)