Skip to content

Commit 9d5de7e

Browse files
StephenBonikowskyzhenlan
authored andcommitted
* Restoring buildtools failed with... * NuGet.Configuration.NuGetConfigurationException: Failed to read NuGet.Config due to unauthorized access. * This PR in CoreFx fixes the problem.
1 parent 0463034 commit 9d5de7e

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

run.cmd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ if not defined VisualStudioVersion (
3434
:: misleading value (such as 'MCD' in HP PCs) may lead to build breakage (issue: #69).
3535
set Platform=
3636

37+
38+
:: Disable telemetry, first time experience, and global sdk look for the CLI
39+
set DOTNET_CLI_TELEMETRY_OPTOUT=1
40+
set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
41+
set DOTNET_MULTILEVEL_LOOKUP=0
42+
3743
:: Restore the Tools directory
3844
call %~dp0init-tools.cmd
3945
if NOT [%ERRORLEVEL%]==[0] exit /b 1

run.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
__scriptpath=$(cd "$(dirname "$0")"; pwd -P)
44

5+
# Disable telemetry, first time experience, and global sdk look for the CLI
6+
export DOTNET_CLI_TELEMETRY_OPTOUT=1
7+
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
8+
export DOTNET_MULTILEVEL_LOOKUP=0
9+
510
# Source the init-tools.sh script rather than execute in order to preserve ulimit values in child-processes. https://github.com/dotnet/corefx/issues/19152
611
. $__scriptpath/init-tools.sh
712

0 commit comments

Comments
 (0)