lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject lucenenet git commit: build/build.ps1: Changed to install both 1.0.5 and 2.0.0 .NET Core SDKs, since the former is still required to run tests on .NET Core 1.0
Date Sun, 10 Sep 2017 11:29:21 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master 0b6cbd936 -> fd7900f06


build/build.ps1: Changed to install both 1.0.5 and 2.0.0 .NET Core SDKs, since the former
is still required to run tests on .NET Core 1.0


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/fd7900f0
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/fd7900f0
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/fd7900f0

Branch: refs/heads/master
Commit: fd7900f066a22dcef123441a77e9e94d546d7b31
Parents: 0b6cbd9
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sun Sep 10 18:29:07 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sun Sep 10 18:29:07 2017 +0700

----------------------------------------------------------------------
 build/build.ps1 | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fd7900f0/build/build.ps1
----------------------------------------------------------------------
diff --git a/build/build.ps1 b/build/build.ps1
index 1208363..a5a1d36 100644
--- a/build/build.ps1
+++ b/build/build.ps1
@@ -67,6 +67,15 @@ task InstallSDK -description "This task makes sure the correct SDK version
is in
 	}
 	
 	Write-Host "Current SDK version: $sdkVersion" -ForegroundColor Yellow
+
+	# Make sure framework for .NET Core 1.0.5 is available
+	if (!$sdkVersion.Equals("1.0.5")) {
+		Write-Host "Require SDK version 1.0.5, installing..." -ForegroundColor Red
+		#Install the correct version of the .NET SDK for this build
+	    Invoke-Expression "$base_directory\build\dotnet-install.ps1 -Version 1.0.5"
+	}
+
+	# Make sure framework for .NET Core 2.0.0 is available
 	if (!$sdkVersion.Equals("2.0.0")) {
 		Write-Host "Require SDK version 2.0.0, installing..." -ForegroundColor Red
 		#Install the correct version of the .NET SDK for this build


Mime
View raw message