Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate McMaster <natemcmaster@users.noreply.github.com>2018-10-12 02:20:46 +0300
committerGitHub <noreply@github.com>2018-10-12 02:20:46 +0300
commitb833d1df88aa187fed81908073fdeed291b8ea8d (patch)
treefc4a27aa577a0aed814ad820312442f49a9c913d /run.ps1
parent867a9423f7440cdeb240ef2d13e34362f332c56b (diff)
Set DOTNET_HOME to repo dir when `--ci` is specified (#1490)
Diffstat (limited to 'run.ps1')
-rw-r--r--run.ps11
1 files changed, 1 insertions, 0 deletions
diff --git a/run.ps1 b/run.ps1
index 95f7f2246f..60e533097c 100644
--- a/run.ps1
+++ b/run.ps1
@@ -201,6 +201,7 @@ if (Test-Path $ConfigFile) {
if (!$DotNetHome) {
$DotNetHome = if ($env:DOTNET_HOME) { $env:DOTNET_HOME } `
+ elseif ($CI) { Join-Path $PSScriptRoot '.dotnet' } `
elseif ($env:USERPROFILE) { Join-Path $env:USERPROFILE '.dotnet'} `
elseif ($env:HOME) {Join-Path $env:HOME '.dotnet'}`
else { Join-Path $PSScriptRoot '.dotnet'}