Skip to content

Commit 1e51b95

Browse files
committed
issue dotnet#43: add info messages concerning install scripts purpose
1 parent ad55554 commit 1e51b95

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/dotnet-install.ps1

+5
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,11 @@ function Prepend-Sdk-InstallRoot-To-Path([string]$InstallRoot, [string]$BinFolde
635635
}
636636
}
637637

638+
Say "Please note that the intended use of this script is for Continuous Integration (CI) scenarios, where:"
639+
Say "- The SDK needs to be installed without user interaction and without admin rights."
640+
Say "- The SDK installation doesn't need to persist across multiple CI runs."
641+
Say "To set up a development environment or to run apps, use installers rather than this script. Visit https://dotnet.microsoft.com/download to get the installer.`r`n"
642+
638643
$CLIArchitecture = Get-CLIArchitecture-From-Architecture $Architecture
639644
$SpecificVersion = Get-Specific-Version-From-Version -AzureFeed $AzureFeed -Channel $Channel -Version $Version -JSonFile $JSonFile
640645
$DownloadLink, $EffectiveVersion = Get-Download-Link -AzureFeed $AzureFeed -SpecificVersion $SpecificVersion -CLIArchitecture $CLIArchitecture

src/dotnet-install.sh

+5
Original file line numberDiff line numberDiff line change
@@ -1061,6 +1061,11 @@ if [ "$no_cdn" = true ]; then
10611061
azure_feed="$uncached_feed"
10621062
fi
10631063
1064+
say "Please note that the intended use of this script is for Continuous Integration (CI) scenarios, where:"
1065+
say "- The SDK needs to be installed without user interaction and without admin rights."
1066+
say "- The SDK installation doesn't need to persist across multiple CI runs."
1067+
say "To set up a development environment or to run apps, use installers rather than this script. Visit https://dotnet.microsoft.com/download to get the installer.\r\n"
1068+
10641069
check_min_reqs
10651070
calculate_vars
10661071
script_name=$(basename "$0")

0 commit comments

Comments
 (0)