File tree Expand file tree Collapse file tree 4 files changed +12
-19
lines changed Expand file tree Collapse file tree 4 files changed +12
-19
lines changed Original file line number Diff line number Diff line change @@ -276,7 +276,6 @@ functions @{
276276
277277 private static string GetProjectDirectoryName(string resourceDirPath)
278278 {
279- const string projectFileName = "project.json";
280279 string rootPath = RemoveLastSlash(Path.GetPathRoot(resourceDirPath));
281280 string projectDirPath = RemoveLastSlash(resourceDirPath);
282281
@@ -287,9 +286,7 @@ functions @{
287286 throw new FileNotFoundException("Project file not exist.");
288287 }
289288
290- string projectFilePath = Path.Combine(projectDirPath, projectFileName);
291- if (File.Exists(projectFilePath)
292- || Directory.EnumerateFiles(projectDirPath, "*.csproj", SearchOption.TopDirectoryOnly).Any())
289+ if (Directory.EnumerateFiles(projectDirPath, "*.csproj", SearchOption.TopDirectoryOnly).Any())
293290 {
294291 break;
295292 }
Original file line number Diff line number Diff line change 22
33setlocal
44set ORIGINAL_CURRENT_DIR = %cd%
5- set KOREBUILD_DOTNET_CHANNEL = preview
6- set KOREBUILD_DOTNET_VERSION = 1.0.0-preview2-003156
75
86cd %~dp0
97
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ cd $PSScriptRoot
3333$repoFolder = $PSScriptRoot
3434$env: REPO_FOLDER = $repoFolder
3535
36- $koreBuildZip = " https://github.com/aspnet/KoreBuild/archive/1.0.0 .zip"
36+ $koreBuildZip = " https://github.com/aspnet/KoreBuild/archive/rel/1.1.2 .zip"
3737if ($env: KOREBUILD_ZIP )
3838{
3939 $koreBuildZip = $env: KOREBUILD_ZIP
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22ORIGINAL_CURRENT_DIR=%cd%
3- KOREBUILD_DOTNET_CHANNEL=preview
4- KOREBUILD_DOTNET_VERSION=1.0.0-preview2-003156
53
64repoFolder=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
75cd $repoFolder
@@ -13,7 +11,7 @@ if test ! -d $packageDir/NUnit.Runners; then
1311 mono $localNugetPackageManager install NUnit.Runners -Version 3.4.1 -O $packageDir % -ExcludeVersion -NoCache
1412fi
1513
16- koreBuildZip=" https://github.com/aspnet/KoreBuild/archive/1.0.0 .zip"
14+ koreBuildZip=" https://github.com/aspnet/KoreBuild/archive/rel/1.1.2 .zip"
1715if [ ! -z $KOREBUILD_ZIP ]; then
1816 koreBuildZip=$KOREBUILD_ZIP
1917fi
@@ -23,12 +21,12 @@ buildFile="$buildFolder/KoreBuild.sh"
2321
2422if test ! -d $buildFolder ; then
2523 echo " Downloading KoreBuild from $koreBuildZip "
26-
27- tempFolder=" /tmp/KoreBuild-$( uuidgen) "
24+
25+ tempFolder=" /tmp/KoreBuild-$( uuidgen) "
2826 mkdir $tempFolder
29-
27+
3028 localZipFile=" $tempFolder /korebuild.zip"
31-
29+
3230 retries=6
3331 until (wget -O $localZipFile $koreBuildZip 2> /dev/null || curl -o $localZipFile --location $koreBuildZip 2> /dev/null)
3432 do
@@ -40,17 +38,17 @@ if test ! -d $buildFolder; then
4038 echo " Waiting 10 seconds before retrying. Retries left: $retries "
4139 sleep 10s
4240 done
43-
41+
4442 unzip -q -d $tempFolder $localZipFile
45-
43+
4644 mkdir $buildFolder
4745 cp -r $tempFolder /** /build/** $buildFolder
48-
46+
4947 chmod +x $buildFile
50-
48+
5149 # Cleanup
5250 if test ! -d $tempFolder ; then
53- rm -rf $tempFolder
51+ rm -rf $tempFolder
5452 fi
5553fi
5654
You can’t perform that action at this time.
0 commit comments