Skip to content

Commit 84e3205

Browse files
author
Steve Salas
committed
Install .NET Core 3.1
1 parent dc0c20f commit 84e3205

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

installers/build.ps1

+9-2
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,20 @@ param (
1616
[switch] $useGitHubDotNetTracerWindowsDownloadUrl,
1717
[string] $version='1.0.0',
1818
[string] $versionForDotNetTracerWindowsDownloadUrl='1.0.0',
19-
[string] $releaseDate=([DateTime]::Now.ToShortDateString())
19+
[string] $releaseDate=([DateTime]::Now.ToShortDateString()),
20+
[switch] $skipDotNetCoreInstall
2021
)
2122

2223
Set-PSDebug -Strict
2324
$ErrorActionPreference = 'Stop'
2425
$VerbosePreference = 'Continue'
2526

27+
if (-not $skipDotNetCoreInstall) {
28+
$file=([io.path]::gettemppath())+'.ps1'
29+
Invoke-WebRequest -Uri 'https://dotnet.microsoft.com/download/dotnet-core/scripts/v1/dotnet-install.ps1' -OutFile $file
30+
& $file -Channel 3.1
31+
}
32+
2633
$dotNetTracerWindowsDownloadUrl = "https://ci.appveyor.com/api/buildjobs/VERSION_NUMBER_FOR_DOWNLOAD/artifacts/installers/CodePulse-DotNetTracer-$version-Windows.zip"
2734
if ($useGitHubDotNetTracerWindowsDownloadUrl) {
2835
$dotNetTracerWindowsDownloadUrl = "https://github.com/codedx/codepulse/releases/download/vVERSION_NUMBER_FOR_DOWNLOAD/CodePulse-DotNetTracer-$version-Windows.zip"
@@ -81,4 +88,4 @@ if (-not $skipLinux) {
8188
}
8289
}
8390

84-
Pop-Location
91+
Pop-Location

0 commit comments

Comments
 (0)