Skip to content

Commit fe7491e

Browse files
committed
Added docs for installing as a global tool
1 parent 9070666 commit fe7491e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,20 @@ docker run -it dotnet-script --version
5959

6060
You can manually download all the releases in `zip` format from the [Github releases page](https://github.com/filipw/dotnet-script/releases).
6161

62+
### .Net Core Global Tool
63+
64+
.Net Core 2.1 introduces the concept of global tools meaning that we can install `dotnet-script` using nothing but the `dotnet CLI`
65+
66+
```shell
67+
dotnet install tool -g dotnet-script
68+
```
69+
70+
The advantage of this approach is that we will execute the same command for installation across all platforms.
71+
72+
> In order to se global tool we need at least [.Net Core SDK 2.1.300 preview1](https://www.microsoft.com/net/download/dotnet-core/sdk-2.1.300-preview1)
73+
74+
75+
6276
## Usage
6377

6478
Our typical `helloworld.csx` might look like this

0 commit comments

Comments
 (0)