You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-21Lines changed: 3 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -18,33 +18,15 @@ The only thing we need to install is [.Net Core SDK](https://www.microsoft.com/n
18
18
### .Net Core 2.1 Global Tool
19
19
20
20
.Net Core 2.1 introduces the concept of global tools meaning that you can install `dotnet-script` using nothing but the .NET CLI.
21
+
To do this, you will need [.Net Core SDK 2.1.300 preview1](https://www.microsoft.com/net/download/dotnet-core/sdk-2.1.300-preview1).
21
22
22
23
```shell
23
-
dotnet tool install -g dotnet-script
24
-
25
-
You can invoke the tool using the following command: dotnet-script
26
-
Tool 'dotnet-script' (version '0.20.0') was successfully installed.
24
+
dotnet install tool -g dotnet-script
27
25
```
28
26
29
27
The advantage of this approach is that you can use the same command for installation across all platforms.
30
28
31
-
> In order to use the global tool you need [.Net Core SDK 2.1.300 preview2](https://www.microsoft.com/net/download/dotnet-core/sdk-2.1.300-preview2) or higher. It also works with [.Net Core SDK 2.1.300 preview1](https://www.microsoft.com/net/download/dotnet-core/sdk-2.1.300-preview1), but that one had a different syntax: `dotnet install tool -g dotnet-script` and is now deprecated.
32
-
33
-
.NET Core SDK also supports viewing a list of installed tools and their uninstallation.
34
-
35
-
```shell
36
-
dotnet tool list -g
37
-
38
-
Package Id Version Commands
39
-
---------------------------------------------
40
-
dotnet-script 0.20.0 dotnet-script
41
-
```
42
-
43
-
```shell
44
-
dotnet tool uninstall dotnet-script -g
45
-
46
-
Tool 'dotnet-script' (version '0.20.0') was successfully uninstalled.
47
-
```
29
+
> ⚠️ [.Net Core SDK 2.1.300 preview2](https://www.microsoft.com/net/download/dotnet-core/sdk-2.1.300-preview2) is already out. Unfortunately, it [doesn't support .NET Core 2.0 tools](https://github.com/dotnet/cli/issues/9073#issuecomment-382020484) (dotnet-script uses .NET Core 2.0 runtime to execute your scripts) so is not compatible with dotnet-script at the moment.
0 commit comments