File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,20 @@ param (
16
16
[switch ] $useGitHubDotNetTracerWindowsDownloadUrl ,
17
17
[string ] $version = ' 1.0.0' ,
18
18
[string ] $versionForDotNetTracerWindowsDownloadUrl = ' 1.0.0' ,
19
- [string ] $releaseDate = ([DateTime ]::Now.ToShortDateString())
19
+ [string ] $releaseDate = ([DateTime ]::Now.ToShortDateString()),
20
+ [switch ] $skipDotNetCoreInstall
20
21
)
21
22
22
23
Set-PSDebug - Strict
23
24
$ErrorActionPreference = ' Stop'
24
25
$VerbosePreference = ' Continue'
25
26
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
+
26
33
$dotNetTracerWindowsDownloadUrl = " https://ci.appveyor.com/api/buildjobs/VERSION_NUMBER_FOR_DOWNLOAD/artifacts/installers/CodePulse-DotNetTracer-$version -Windows.zip"
27
34
if ($useGitHubDotNetTracerWindowsDownloadUrl ) {
28
35
$dotNetTracerWindowsDownloadUrl = " https://github.com/codedx/codepulse/releases/download/vVERSION_NUMBER_FOR_DOWNLOAD/CodePulse-DotNetTracer-$version -Windows.zip"
@@ -81,4 +88,4 @@ if (-not $skipLinux) {
81
88
}
82
89
}
83
90
84
- Pop-Location
91
+ Pop-Location
You can’t perform that action at this time.
0 commit comments