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
|`Dotnet.Script`(CLI as Nuget)|[](https://www.nuget.org/packages/dotnet.script/)|`net5.0`, `netcoreapp3.1`|
@@ -20,11 +20,11 @@ Run C# scripts from the .NET CLI, define NuGet packages inline and edit/debug th
20
20
21
21
### Prerequisites
22
22
23
-
The only thing we need to install is [.NET Core 2.1+ SDK](https://www.microsoft.com/net/download/core). In order to use C# 8.0 features, [.NET Core 3.1+ SDK](https://www.microsoft.com/net/download/core) must be installed.
23
+
The only thing we need to install is [.NET Core 3.1 or .NET 5.0 SDK](https://www.microsoft.com/net/download/core).
24
24
25
25
### .NET Core Global Tool
26
26
27
-
.NET Core 2.1 introduces the concept of global tools meaning that you can install `dotnet-script` using nothing but the .NET CLI.
27
+
.NET Core 2.1 introduced the concept of global tools meaning that you can install `dotnet-script` using nothing but the .NET CLI.
The advantage of this approach is that you can use the same command for installation across all platforms.
37
-
38
-
> ⚠️ In order to use the global tool you need [.NET Core SDK 2.1.300](https://www.microsoft.com/net/download/dotnet-core/sdk-2.1.300) or higher. The earlier previews and release candidates of .NET Core 2.1 are not supported.
39
-
40
37
.NET Core SDK also supports viewing a list of installed tools and their uninstallation.
41
38
42
39
```shell
@@ -316,7 +313,6 @@ To consume a script package all we need to do specify the NuGet package in the `
316
313
The following example loads the [simple-targets](https://www.nuget.org/packages/simple-targets-csx) package that contains script files to be included in our script.
317
314
318
315
```C#
319
-
#! "netcoreapp2.1"
320
316
#load"nuget:simple-targets-csx, 6.0.0"
321
317
322
318
usingstaticSimpleTargets;
@@ -466,7 +462,6 @@ The following example shows how we can pipe data in and out of a script.
466
462
The `UpperCase.csx` script simply converts the standard input to upper case and writes it back out to standard output.
467
463
468
464
```csharp
469
-
#! "netcoreapp2.1"
470
465
using (varstreamReader=newStreamReader(Console.OpenStandardInput()))
0 commit comments