From 5854e03ddc0941b9b749757a70720eb3cc799bbd Mon Sep 17 00:00:00 2001 From: Sourabh Shirhatti Date: Mon, 3 Apr 2017 16:06:25 -0700 Subject: [PATCH] Update Korebuild and dependency versions (#85) Merging --- .gitignore | 3 +- Build/Key.snk | Bin 0 -> 596 bytes Build/common.props | 23 ++++++++++++++ Build/dependencies.props | 11 +++++++ NuGet.config | 4 +-- build.ps1 | 16 +++++----- .../aspnetcoremodule.test.csproj | 28 ++++++++---------- version.props | 7 +++++ 8 files changed, 65 insertions(+), 27 deletions(-) create mode 100644 Build/Key.snk create mode 100644 Build/common.props create mode 100644 Build/dependencies.props create mode 100644 version.props diff --git a/.gitignore b/.gitignore index 9d24973eeb..03944b51ac 100644 --- a/.gitignore +++ b/.gitignore @@ -48,4 +48,5 @@ src/AspNetCore/aspnetcore_msg.rc src/AspNetCore/version.h .build -*.VC.*db \ No newline at end of file +*.VC.*db +global.json \ No newline at end of file diff --git a/Build/Key.snk b/Build/Key.snk new file mode 100644 index 0000000000000000000000000000000000000000..e10e4889c125d3120cd9e81582243d70f7cbb806 GIT binary patch literal 596 zcmV-a0;~N80ssI2Bme+XQ$aES1ONa50098=Iw=HCsnz~#iVhm& zj%TU(_THUee?3yHBjk$37ysB?i5#7WD$={H zV4B!OxRPrb|8)HPg~A}8P>^=#y<)56#=E&NzcjOtPK~<4n6GHt=K$ro*T(lhby_@U zEk(hLzk1H)0yXj{A_5>fk-TgNoP|q6(tP2xo8zt8i%212CWM#AeCd?`hS|4~L({h~Moo(~vy&3Z z1uI}`fd^*>o=rwbAGymj6RM^pZm(*Kfhs+Y1#`-2JPWZMK8@;ZWCk2+9bX4YP);~fj-BU*R zQPvWv$89!{Rl9wM+zR>_TSkn^voYxA?2G iKnV#iZ6Ah`K>b=@=IjYJXrxL124zR(38)nxe+&q_$QXwJ literal 0 HcmV?d00001 diff --git a/Build/common.props b/Build/common.props new file mode 100644 index 0000000000..c87cc995fa --- /dev/null +++ b/Build/common.props @@ -0,0 +1,23 @@ + + + + + + Microsoft ASP.NET Core + https://github.com/aspnet/AspNetCoreModule + git + $(MSBuildThisFileDirectory)Key.snk + true + true + $(VersionSuffix)-$(BuildNumber) + + + + + + + + + + + \ No newline at end of file diff --git a/Build/dependencies.props b/Build/dependencies.props new file mode 100644 index 0000000000..8c81df7f34 --- /dev/null +++ b/Build/dependencies.props @@ -0,0 +1,11 @@ + + + 1.2.0-* + 4.3.0 + 2.0.0-* + 1.6.1 + 2.0.0-* + 15.0.0 + 2.2.0 + + \ No newline at end of file diff --git a/NuGet.config b/NuGet.config index 4e531e985d..6f9f028ca1 100644 --- a/NuGet.config +++ b/NuGet.config @@ -2,7 +2,7 @@ - + - + \ No newline at end of file diff --git a/build.ps1 b/build.ps1 index 0605b59c01..dc220d733f 100644 --- a/build.ps1 +++ b/build.ps1 @@ -1,6 +1,6 @@ $ErrorActionPreference = "Stop" -function DownloadWithRetry([string] $url, [string] $downloadLocation, [int] $retries) +function DownloadWithRetry([string] $url, [string] $downloadLocation, [int] $retries) { while($true) { @@ -19,7 +19,7 @@ function DownloadWithRetry([string] $url, [string] $downloadLocation, [int] $ret Start-Sleep -Seconds 10 } - else + else { $exception = $_.Exception throw $exception @@ -33,7 +33,7 @@ cd $PSScriptRoot $repoFolder = $PSScriptRoot $env:REPO_FOLDER = $repoFolder -$koreBuildZip="https://github.com/aspnet/KoreBuild/archive/feature/msbuild.zip" +$koreBuildZip="https://github.com/aspnet/KoreBuild/archive/dev.zip" if ($env:KOREBUILD_ZIP) { $koreBuildZip=$env:KOREBUILD_ZIP @@ -43,18 +43,18 @@ $buildFolder = ".build" $buildFile="$buildFolder\KoreBuild.ps1" if (!(Test-Path $buildFolder)) { - Write-Host "Downloading KoreBuild from $koreBuildZip" - + Write-Host "Downloading KoreBuild from $koreBuildZip" + $tempFolder=$env:TEMP + "\KoreBuild-" + [guid]::NewGuid() New-Item -Path "$tempFolder" -Type directory | Out-Null $localZipFile="$tempFolder\korebuild.zip" - + DownloadWithRetry -url $koreBuildZip -downloadLocation $localZipFile -retries 6 Add-Type -AssemblyName System.IO.Compression.FileSystem [System.IO.Compression.ZipFile]::ExtractToDirectory($localZipFile, $tempFolder) - + New-Item -Path "$buildFolder" -Type directory | Out-Null copy-item "$tempFolder\**\build\*" $buildFolder -Recurse @@ -64,4 +64,4 @@ if (!(Test-Path $buildFolder)) { } } -&"$buildFile" $args \ No newline at end of file +&"$buildFile" @args \ No newline at end of file diff --git a/test/AspNetCoreModule.Test/aspnetcoremodule.test.csproj b/test/AspNetCoreModule.Test/aspnetcoremodule.test.csproj index 58bcdc9a21..9da583a52b 100644 --- a/test/AspNetCoreModule.Test/aspnetcoremodule.test.csproj +++ b/test/AspNetCoreModule.Test/aspnetcoremodule.test.csproj @@ -1,7 +1,8 @@  + - net452 + net46 true true @@ -14,22 +15,17 @@ - - - + + + + - - - - - - - - - - - - + + + + + + diff --git a/version.props b/version.props new file mode 100644 index 0000000000..38c93687ab --- /dev/null +++ b/version.props @@ -0,0 +1,7 @@ + + + + 1.2.0 + preview1 + + \ No newline at end of file