-
Notifications
You must be signed in to change notification settings - Fork 790
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6705 from microsoft/merges/dev16.2-to-fsharp5
Merge dev16.2 to fsharp5
- Loading branch information
Showing
16 changed files
with
170 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@echo off | ||
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0dotnet-install.ps1""" %*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[CmdletBinding(PositionalBinding=$false)] | ||
Param( | ||
[string] $verbosity = "minimal", | ||
[string] $architecture = "", | ||
[string] $version = "Latest", | ||
[string] $runtime = "dotnet" | ||
) | ||
|
||
. $PSScriptRoot\tools.ps1 | ||
|
||
try { | ||
$dotnetRoot = Join-Path $RepoRoot ".dotnet" | ||
InstallDotNet $dotnetRoot $version $architecture $runtime $true | ||
} | ||
catch { | ||
Write-Host $_ | ||
Write-Host $_.Exception | ||
Write-Host $_.ScriptStackTrace | ||
ExitWithExitCode 1 | ||
} | ||
|
||
ExitWithExitCode 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/usr/bin/env bash | ||
|
||
source="${BASH_SOURCE[0]}" | ||
# resolve $source until the file is no longer a symlink | ||
while [[ -h "$source" ]]; do | ||
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )" | ||
source="$(readlink "$source")" | ||
# if $source was a relative symlink, we need to resolve it relative to the path where the | ||
# symlink file was located | ||
[[ $source != /* ]] && source="$scriptroot/$source" | ||
done | ||
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )" | ||
|
||
version='Latest' | ||
architecture='' | ||
runtime='dotnet' | ||
while [[ $# > 0 ]]; do | ||
opt="$(echo "$1" | awk '{print tolower($0)}')" | ||
case "$opt" in | ||
-version|-v) | ||
shift | ||
version="$1" | ||
;; | ||
-architecture|-a) | ||
shift | ||
architecture="$1" | ||
;; | ||
-runtime|-r) | ||
shift | ||
runtime="$1" | ||
;; | ||
*) | ||
echo "Invalid argument: $1" | ||
usage | ||
exit 1 | ||
;; | ||
esac | ||
shift | ||
done | ||
|
||
. "$scriptroot/tools.sh" | ||
dotnetRoot="$repo_root/.dotnet" | ||
InstallDotNet $dotnetRoot $version "$architecture" $runtime true || { | ||
local exit_code=$? | ||
echo "dotnet-install.sh failed (exit code '$exit_code')." >&2 | ||
ExitWithExitCode $exit_code | ||
} | ||
|
||
ExitWithExitCode 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.