Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* Restoring buildtools failed with...
* NuGet.Configuration.NuGetConfigurationException: Failed to read NuGet.Config due to unauthorized access.
* This PR in CoreFx fixes the problem.
  • Loading branch information
StephenBonikowsky authored and zhenlan committed Feb 27, 2018
1 parent 0463034 commit 9d5de7e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions run.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ if not defined VisualStudioVersion (
:: misleading value (such as 'MCD' in HP PCs) may lead to build breakage (issue: #69).
set Platform=


:: Disable telemetry, first time experience, and global sdk look for the CLI
set DOTNET_CLI_TELEMETRY_OPTOUT=1
set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
set DOTNET_MULTILEVEL_LOOKUP=0

:: Restore the Tools directory
call %~dp0init-tools.cmd
if NOT [%ERRORLEVEL%]==[0] exit /b 1
Expand Down
5 changes: 5 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

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

# Disable telemetry, first time experience, and global sdk look for the CLI
export DOTNET_CLI_TELEMETRY_OPTOUT=1
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
export DOTNET_MULTILEVEL_LOOKUP=0

# 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
. $__scriptpath/init-tools.sh

Expand Down

0 comments on commit 9d5de7e

Please sign in to comment.