Skip to content

Commit 34c391e

Browse files
authored
Update script link
1 parent ffb3a5c commit 34c391e

File tree

6 files changed

+26
-26
lines changed

6 files changed

+26
-26
lines changed

docs/core/install/linux-scripted-manual.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Install .NET on Linux without using a package manager
33
description: Demonstrates how to install the .NET SDK and the .NET Runtime on Linux without a package manager. Use the install script or manually extract the binaries.
44
author: adegeo
55
ms.author: adegeo
6-
ms.date: 11/11/2024
6+
ms.date: 12/20/2024
77
ms.custom: linux-related-content
88
---
99

@@ -73,15 +73,15 @@ You can usually install a recent version of *libgdiplus* by [adding the Mono rep
7373

7474
## Scripted install
7575

76-
The [dotnet-install scripts](../tools/dotnet-install-script.md) are used for automation and non-admin installs of the **SDK** and **Runtime**. You can download the script from <https://dot.net/v1/dotnet-install.sh>. When .NET is installed in this way, you must install the dependencies required by your Linux distribution. Use the links in the [Install .NET on Linux](linux.md) article for your specific Linux distribution.
76+
The [dotnet-install scripts](../tools/dotnet-install-script.md) are used for automation and non-admin installs of the **SDK** and **Runtime**. You can download the script from <https://dot.net/v2/dotnet-install.sh>. When .NET is installed in this way, you must install the dependencies required by your Linux distribution. Use the links in the [Install .NET on Linux](linux.md) article for your specific Linux distribution.
7777

7878
> [!IMPORTANT]
7979
> Bash is required to run the script.
8080
8181
You can download the script with `wget`:
8282

8383
```bash
84-
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
84+
wget https://dot.net/v2/dotnet-install.sh -O dotnet-install.sh
8585
```
8686

8787
Before running this script, make sure you grant permission for this script to run as an executable:

docs/core/install/macos.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn about which versions of .NET SDK and .NET Runtime are support
44
author: adegeo
55
ms.author: adegeo
66
ms.topic: install-set-up-deploy
7-
ms.date: 11/11/2024
7+
ms.date: 12/20/2024
88
ms.custom: linux-related-content
99

1010
#customer intent: As a user or developer, I want to know which versions of .NET are supported on macOS. I also need to know how to install .NET on macOS.
@@ -168,7 +168,7 @@ chdir ~/Applications/.dotnet/
168168

169169
## Install .NET with a script
170170

171-
The [dotnet-install scripts](../tools/dotnet-install-script.md) are used for automation and unelevated installs of the runtime. You can download the script from <https://dot.net/v1/dotnet-install.sh>.
171+
The [dotnet-install scripts](../tools/dotnet-install-script.md) are used for automation and unelevated installs of the runtime. You can download the script from <https://dot.net/v2/dotnet-install.sh>.
172172

173173
The script defaults to installing the latest [long term support (LTS)](https://dotnet.microsoft.com/platform/support/policy/dotnet-core) version, which is .NET 8. You can choose a specific release by specifying the `channel` switch. Include the `runtime` switch to install a runtime. Otherwise, the script installs the SDK.
174174

@@ -186,7 +186,7 @@ The script defaults to installing the latest [long term support (LTS)](https://d
186186
01. Run the following command to download the script:
187187
188188
```bash
189-
wget https://dot.net/v1/dotnet-install.sh
189+
wget https://dot.net/v2/dotnet-install.sh
190190
```
191191
192192
01. Give the script execute permissions
@@ -208,7 +208,7 @@ Here are all the commands as a single bash script:
208208
```bash
209209
chdir ~/Downloads
210210
brew install wget
211-
wget https://dot.net/v1/dotnet-install.sh
211+
wget https://dot.net/v2/dotnet-install.sh
212212
chmod +x dotnet-install.sh
213213
./dotnet-install.sh
214214
```

docs/core/install/windows.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "Learn about which versions of .NET SDK and .NET Runtime are suppor
44
author: adegeo
55
ms.author: adegeo
66
ms.topic: install-set-up-deploy #Don't change
7-
ms.date: 11/11/2024
7+
ms.date: 12/20/2024
88
#customer intent: As a developer or user, I want to decide the best way to install .NET on Windows.
99
---
1010

@@ -330,18 +330,18 @@ winget install Microsoft.DotNet.DesktopRuntime.Preview
330330

331331
Installing .NET through the `dotnet-install` PowerShell script is recommended for continuous integration and nonadmin installs. If you're installing .NET for normal use on your system, use either the [.NET Installer](#net-installer) or [Windows Package Manager](#install-with-windows-package-manager-winget) installation methods.
332332

333-
The script defaults to installing the latest [long term support (LTS)](https://dotnet.microsoft.com/platform/support/policy/dotnet-core) version, which is .NET 8. You can choose a specific release by specifying the `-Channel` switch. Include the `-Runtime` switch to install a runtime. Otherwise, the script installs the SDK. The script is available at <https://dot.net/v1/dotnet-install.ps1> and the source code is hosted on [GitHub](https://github.com/dotnet/install-scripts).
333+
The script defaults to installing the latest [long term support (LTS)](https://dotnet.microsoft.com/platform/support/policy/dotnet-core) version, which is .NET 8. You can choose a specific release by specifying the `-Channel` switch. Include the `-Runtime` switch to install a runtime. Otherwise, the script installs the SDK. The script is available at <https://dot.net/v2/dotnet-install.ps1> and the source code is hosted on [GitHub](https://github.com/dotnet/install-scripts).
334334

335335
> [!div class="button"]
336-
> [Download the script](https://dot.net/v1/dotnet-install.ps1)
336+
> [Download the script](https://dot.net/v2/dotnet-install.ps1)
337337
338338
For more information about the script, see [dotnet-install script reference](../tools/dotnet-install-script.md).
339339

340340
### Install the runtime
341341

342342
The .NET Runtime is installed by providing the `-Runtime` switch.
343343

344-
01. Download the install script from <https://dot.net/v1/dotnet-install.ps1>
344+
01. Download the install script from <https://dot.net/v2/dotnet-install.ps1>
345345
01. Open PowerShell and navigate to the folder containing the script.
346346
01. Run the following commands to install both the Desktop runtime and ASP.NET Core runtime for maximum compatibility:
347347

@@ -356,7 +356,7 @@ To learn how to use the .NET CLI, see [.NET CLI overview](../tools/index.md).
356356
357357
If you install the SDK, you don't need to install the runtimes.
358358
359-
01. Download the install script from <https://dot.net/v1/dotnet-install.ps1>
359+
01. Download the install script from <https://dot.net/v2/dotnet-install.ps1>
360360
01. Open PowerShell and navigate to the folder containing the script.
361361
01. Run the following command to install the .NET SDK.
362362

docs/core/tools/dotnet-install-script.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: dotnet-install scripts
33
description: Learn about the dotnet-install scripts to install the .NET SDK and the shared runtime.
4-
ms.date: 08/01/2023
4+
ms.date: 12/20/2023
55
---
66
# dotnet-install scripts reference
77

@@ -69,8 +69,8 @@ To set up a development environment or to run apps, use the installers rather th
6969

7070
We recommend that you use the stable version of the scripts:
7171

72-
- Bash (Linux/macOS): <https://dot.net/v1/dotnet-install.sh>
73-
- PowerShell (Windows): <https://dot.net/v1/dotnet-install.ps1>
72+
- Bash (Linux/macOS): <https://dot.net/v2/dotnet-install.sh>
73+
- PowerShell (Windows): <https://dot.net/v2/dotnet-install.ps1>
7474

7575
The source for the scripts is in the [dotnet/install-scripts](https://github.com/dotnet/install-scripts) GitHub repository.
7676

@@ -272,7 +272,7 @@ The install scripts do not update the registry on Windows. They just download th
272272
- Obtain script and install the 6.0.2 version behind a corporate proxy (Windows only):
273273

274274
```powershell
275-
Invoke-WebRequest 'https://dot.net/v1/dotnet-install.ps1' -Proxy $env:HTTP_PROXY -ProxyUseDefaultCredentials -OutFile 'dotnet-install.ps1';
275+
Invoke-WebRequest 'https://dot.net/v2/dotnet-install.ps1' -Proxy $env:HTTP_PROXY -ProxyUseDefaultCredentials -OutFile 'dotnet-install.ps1';
276276
./dotnet-install.ps1 -InstallDir '~/.dotnet' -Version '6.0.2' -Runtime 'dotnet' -ProxyAddress $env:HTTP_PROXY -ProxyUseDefaultCredentials;
277277
```
278278

@@ -282,13 +282,13 @@ The install scripts do not update the registry on Windows. They just download th
282282

283283
```powershell
284284
# Run a separate PowerShell process because the script calls exit, so it will end the current PowerShell session.
285-
&powershell -NoProfile -ExecutionPolicy unrestricted -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://dot.net/v1/dotnet-install.ps1'))) <additional install-script args>"
285+
&powershell -NoProfile -ExecutionPolicy unrestricted -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://dot.net/v2/dotnet-install.ps1'))) <additional install-script args>"
286286
```
287287

288288
macOS/Linux:
289289

290290
```bash
291-
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin <additional install-script args>
291+
curl -sSL https://dot.net/v2/dotnet-install.sh | bash /dev/stdin <additional install-script args>
292292
```
293293

294294
## Set environment variables
@@ -322,8 +322,8 @@ Signature validation is an important security measure that helps ensure the auth
322322
Here is a step-by-step guide on how to verify the authenticity of the `dotnet-install.sh` script using GPG:
323323
324324
1. **Install GPG**: GPG (GNU Privacy Guard) is a free and open-source tool for encrypting and signing data. You can install it by following the [instructions on the GPG website](https://gnupg.org/download/).
325-
2. **Import our public key**: Download the install-scripts [public key](https://dot.net/v1/dotnet-install.asc) file, and then import it into your GPG keyring by running the command `gpg --import dotnet-install.asc`.
326-
3. **Download the signature file**: The signature file for our bash script is available at `https://dot.net/v1/dotnet-install.sig`. You can download it using a tool like `wget` or `curl`.
325+
2. **Import our public key**: Download the install-scripts [public key](https://dot.net/v2/dotnet-install.asc) file, and then import it into your GPG keyring by running the command `gpg --import dotnet-install.asc`.
326+
3. **Download the signature file**: The signature file for our bash script is available at `https://dot.net/v2/dotnet-install.sig`. You can download it using a tool like `wget` or `curl`.
327327
4. **Verify the signature**: To verify the signature of our bash script, run the command `gpg --verify dotnet-install.sig dotnet-install.sh`. This will check the signature of the `dotnet-install.sh` file against the signature in the `dotnet-install.sig` file.
328328
5. **Check the result**: If the signature is valid, you will see a message containing `Good signature from "Microsoft DevUXTeamPrague <[email protected]>"`. This means that the script has not been tampered with and can be trusted.
329329
@@ -333,7 +333,7 @@ Installing GPG and importing our public key is a one time operation.
333333
334334
```bash
335335
sudo apt install gpg
336-
wget https://dot.net/v1/dotnet-install.asc
336+
wget https://dot.net/v2/dotnet-install.asc
337337
gpg --import dotnet-install.asc
338338
```
339339
@@ -353,8 +353,8 @@ gpg: imported: 1
353353
With the key imported, you can now download the script and the signature, then verify the script matches the signature:
354354

355355
```bash
356-
wget https://dot.net/v1/dotnet-install.sh
357-
wget https://dot.net/v1/dotnet-install.sig
356+
wget https://dot.net/v2/dotnet-install.sh
357+
wget https://dot.net/v2/dotnet-install.sig
358358
gpg --verify dotnet-install.sig dotnet-install.sh
359359
```
360360

docs/devops/dotnet-cli-and-continuous-integration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Write-Host "Downloading the CLI installer..."
7373
# Use the Invoke-WebRequest PowerShell cmdlet to obtain the
7474
# installation script and save it into the installation directory.
7575
Invoke-WebRequest `
76-
-Uri "https://dot.net/v1/dotnet-install.ps1" `
76+
-Uri "https://dot.net/v2/dotnet-install.ps1" `
7777
-OutFile "$InstallDir/dotnet-install.ps1"
7878
7979
Write-Host "Installing the CLI requested version ($CliVersion) ..."
@@ -105,7 +105,7 @@ then
105105
fi
106106
mkdir -p "$INSTALLDIR"
107107
echo Downloading the CLI installer.
108-
$DOWNLOADER https://dot.net/v1/dotnet-install.sh > "$INSTALLDIR/dotnet-install.sh"
108+
$DOWNLOADER https://dot.net/v2/dotnet-install.sh > "$INSTALLDIR/dotnet-install.sh"
109109
chmod +x "$INSTALLDIR/dotnet-install.sh"
110110
echo Installing the CLI requested version $CLI_VERSION. Please wait, installation may take a few minutes.
111111
"$INSTALLDIR/dotnet-install.sh" --install-dir "$INSTALLDIR" --version $CLI_VERSION

docs/iot/deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ To deploy your app as a framework-dependent app, complete the following steps:
2626
1. Run the following command to install .NET:
2727

2828
```bash
29-
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel STS
29+
curl -sSL https://dot.net/v2/dotnet-install.sh | bash /dev/stdin --channel STS
3030
```
3131

3232
> [!NOTE]

0 commit comments

Comments
 (0)