From 90503c097d79572b3c374419aa14d88b93710ee1 Mon Sep 17 00:00:00 2001 From: = Date: Wed, 2 Aug 2017 17:11:24 -0700 Subject: [PATCH] Remove KoreBuild dependent build steps - remove references to .build directory - dotnet cli is not automatically installed on docker images - install x86 dotnet cli using environment variable --- build/repo.targets | 42 ++------------------- tools/scripts/InstallSharedFrameworkx86.ps1 | 28 -------------- 2 files changed, 3 insertions(+), 67 deletions(-) delete mode 100644 tools/scripts/InstallSharedFrameworkx86.ps1 diff --git a/build/repo.targets b/build/repo.targets index 4fd6ebe9c8..f02ea34b4c 100644 --- a/build/repo.targets +++ b/build/repo.targets @@ -67,9 +67,6 @@ $(PackagingDir)hosting_debian_config.json $(PackagingDir)changelog $(ToolsDir)dotnet-deb-tool-consumer\ - $(RepositoryRoot).build\ - $(BuildDirectory)temp\ - $(BuildDirectory)dotnet\ /opt/code/ @@ -207,8 +204,6 @@ - - @@ -219,7 +214,7 @@ - + @@ -233,18 +228,6 @@ - - - - - $(BuildTempDirectory)shared\Microsoft.NETCore.App\$(SharedFrameworkVersion) - - - - - - - @@ -341,9 +324,7 @@ - - - + @@ -748,11 +729,6 @@ OverwriteReadOnlyFiles="true" SkipUnchangedFiles="false" /> - - - - - - - - - - diff --git a/tools/scripts/InstallSharedFrameworkx86.ps1 b/tools/scripts/InstallSharedFrameworkx86.ps1 deleted file mode 100644 index 9931660110..0000000000 --- a/tools/scripts/InstallSharedFrameworkx86.ps1 +++ /dev/null @@ -1,28 +0,0 @@ -param ( - [string]$sharedRuntimeVersion, - [string]$installationDirectory -) - -$sharedRuntimeChannel = "master" -if ($env:KOREBUILD_DOTNET_SHARED_RUNTIME_CHANNEL) -{ - $sharedRuntimeChannel = $env:KOREBUILD_DOTNET_SHARED_RUNTIME_CHANNEL -} - -function InstallSharedRuntime([string] $version, [string] $channel, [string] $installDir) -{ - $sharedRuntimePath = [IO.Path]::Combine($installDir, 'shared', 'Microsoft.NETCore.App', $version) - # Avoid redownloading the CLI if it's already installed. - if (!(Test-Path $sharedRuntimePath)) - { - & "$PSScriptRoot\..\.build\dotnet\dotnet-install.ps1" ` - -Channel $channel ` - -SharedRuntime ` - -Version $version ` - -Architecture 'x86' ` - -InstallDir $installDir ` - -NoPath - } -} - -InstallSharedRuntime -version $sharedRuntimeVersion -channel $sharedRuntimeChannel -installDir $installationDirectory