Skip to content

Commit

Permalink
Update dogfood scripts for new layout
Browse files Browse the repository at this point in the history
  • Loading branch information
dsplaisted committed Dec 2, 2019
1 parent 8f4b61e commit c98372f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
14 changes: 8 additions & 6 deletions eng/dogfood.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ try {
. $PSScriptroot\restore-toolset.ps1

$env:SDK_REPO_ROOT = $RepoRoot
$env:SDK_CLI_VERSION = $GlobalJson.tools.dotnet
$env:MSBuildSDKsPath = Join-Path $ArtifactsDir "bin\$configuration\Sdks"
$env:DOTNET_MSBUILD_SDK_RESOLVER_SDKS_DIR = $env:MSBuildSDKsPath
$env:NETCoreSdkBundledVersionsProps = Join-Path $env:DOTNET_INSTALL_DIR "sdk\$env:SDK_CLI_VERSION\Microsoft.NETCoreSdk.BundledVersions.props"
$env:MicrosoftNETBuildExtensionsTargets = Join-Path $env:MSBuildSDKsPath "Microsoft.NET.Build.Extensions\msbuildExtensions\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.targets"
$env:DOTNET_ROOT = $env:DOTNET_INSTALL_DIR

$TestDotnetRoot = Join-Path $ArtifactsDir "bin\redist\$configuration\dotnet"

$testDotnetVersion = (Get-Childitem -Directory "$TestDotnetRoot\sdk")[0]
$env:DOTNET_MSBUILD_SDK_RESOLVER_SDKS_DIR = Join-Path $TestDotnetRoot "sdk\$testDotnetVersion\Sdks"
$env:MicrosoftNETBuildExtensionsTargets = Join-Path $ArtifactsDir "bin\$configuration\Sdks\Microsoft.NET.Build.Extensions\msbuildExtensions\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.targets"

$env:PATH = "$TestDotnetRoot;$env:Path"

if ($command -eq $null -and $env:DOTNET_SDK_DOGFOOD_SHELL -ne $null) {
$command = , $env:DOTNET_SDK_DOGFOOD_SHELL
Expand Down
12 changes: 7 additions & 5 deletions eng/dogfood.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ ReadGlobalVersion "dotnet"
dotnet_sdk_version=$_ReadGlobalVersion

export SDK_REPO_ROOT="$repo_root"
export SDK_CLI_VERSION="$dotnet_sdk_version"
export MSBuildSDKsPath="$artifacts_dir/bin/$configuration/Sdks"
export DOTNET_MSBUILD_SDK_RESOLVER_SDKS_DIR="$MSBuildSDKsPath"
export NETCoreSdkBundledVersionsProps="$DOTNET_INSTALL_DIR/sdk/$dotnet_sdk_version/Microsoft.NETCoreSdk.BundledVersions.props"
export MicrosoftNETBuildExtensionsTargets="$MSBuildSDKsPath/Microsoft.NET.Build.Extensions/msbuildExtensions/Microsoft/Microsoft.NET.Build.Extensions/Microsoft.NET.Build.Extensions.targets"

testDotnetRoot="$artifacts_dir/bin/redist/$configuration/dotnet"
testDotnetVersion=$(ls $testDotnetRoot/sdk)
export DOTNET_MSBUILD_SDK_RESOLVER_SDKS_DIR="$testDotnetRoot/sdk/$testDotnetVersion/Sdks"
export MicrosoftNETBuildExtensionsTargets="$artifacts_dir/bin/$configuration/Sdks/Microsoft.NET.Build.Extensions/msbuildExtensions/Microsoft/Microsoft.NET.Build.Extensions/Microsoft.NET.Build.Extensions.targets"

export PATH=$testDotnetRoot:$PATH

0 comments on commit c98372f

Please sign in to comment.