Fix tools.ps1
This commit is contained in:
parent
96b1c236d0
commit
08309b1e02
|
|
@ -222,8 +222,8 @@ function GetDotNetInstallScript([string] $dotnetRoot) {
|
||||||
return $installScript
|
return $installScript
|
||||||
}
|
}
|
||||||
|
|
||||||
function InstallDotNetSdk([string] $dotnetRoot, [string] $version, [string] $architecture = '') {
|
function InstallDotNetSdk([string] $dotnetRoot, [string] $version, [string] $architecture = '', [switch] $noPath) {
|
||||||
InstallDotNet $dotnetRoot $version $architecture
|
InstallDotNet $dotnetRoot $version $architecture '' $false $runtimeSourceFeed $runtimeSourceFeedKey -noPath:$noPath
|
||||||
}
|
}
|
||||||
|
|
||||||
function InstallDotNet([string] $dotnetRoot,
|
function InstallDotNet([string] $dotnetRoot,
|
||||||
|
|
@ -232,7 +232,8 @@ function InstallDotNet([string] $dotnetRoot,
|
||||||
[string] $runtime = '',
|
[string] $runtime = '',
|
||||||
[bool] $skipNonVersionedFiles = $false,
|
[bool] $skipNonVersionedFiles = $false,
|
||||||
[string] $runtimeSourceFeed = '',
|
[string] $runtimeSourceFeed = '',
|
||||||
[string] $runtimeSourceFeedKey = '') {
|
[string] $runtimeSourceFeedKey = '',
|
||||||
|
[switch] $noPath) {
|
||||||
|
|
||||||
$installScript = GetDotNetInstallScript $dotnetRoot
|
$installScript = GetDotNetInstallScript $dotnetRoot
|
||||||
$installParameters = @{
|
$installParameters = @{
|
||||||
|
|
@ -243,6 +244,7 @@ function InstallDotNet([string] $dotnetRoot,
|
||||||
if ($architecture) { $installParameters.Architecture = $architecture }
|
if ($architecture) { $installParameters.Architecture = $architecture }
|
||||||
if ($runtime) { $installParameters.Runtime = $runtime }
|
if ($runtime) { $installParameters.Runtime = $runtime }
|
||||||
if ($skipNonVersionedFiles) { $installParameters.SkipNonVersionedFiles = $skipNonVersionedFiles }
|
if ($skipNonVersionedFiles) { $installParameters.SkipNonVersionedFiles = $skipNonVersionedFiles }
|
||||||
|
if ($noPath) { $installParameters.NoPath = $True }
|
||||||
|
|
||||||
try {
|
try {
|
||||||
& $installScript @installParameters
|
& $installScript @installParameters
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue