Set DOTNET_SKIP_FIRST_TIME_EXPERIENCE in more places

This commit is contained in:
Eric Mellino 2017-05-03 15:17:07 -07:00
Родитель bd5f1ce852
Коммит fb6fdf586e
4 изменённых файлов: 13 добавлений и 1 удалений

Просмотреть файл

@ -16,6 +16,10 @@ set PROJECT_JSON_FILE=%PROJECT_JSON_PATH%\project.json
set PROJECT_JSON_CONTENTS={ "dependencies": { "Microsoft.DotNet.BuildTools": "%BUILDTOOLS_VERSION%" }, "frameworks": { "netcoreapp1.0": { } } }
set BUILD_TOOLS_SEMAPHORE=%PROJECT_JSON_PATH%\init-tools.completed
set DUMMY_GLOBAL_JSON_PATH=%PACKAGES_DIR%global.json
:: We do not want to run the first-time experience.
set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
:: if force option is specified then clean the tool runtime and build tools package directory to force it to get recreated
if [%1]==[force] (
if exist "%TOOLRUNTIME_DIR%" rmdir /S /Q "%TOOLRUNTIME_DIR%"

Просмотреть файл

@ -18,6 +18,10 @@ __PROJECT_JSON_FILE=$__PROJECT_JSON_PATH/project.json
__PROJECT_JSON_CONTENTS="{ \"dependencies\": { \"Microsoft.DotNet.BuildTools\": \"$__BUILD_TOOLS_PACKAGE_VERSION\" }, \"frameworks\": { \"netcoreapp1.0\": { } } }"
__INIT_TOOLS_DONE_MARKER=$__PROJECT_JSON_PATH/done
__DUMMY_GLOBAL_JSON_PATH=$__PACKAGES_DIR/global.json
# We do not want to run the first-time experience.
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
# Extended version of platform detection logic from dotnet/cli/scripts/obtain/dotnet-install.sh 16692fc
get_current_linux_name() {
# Detect Distro

Просмотреть файл

@ -12,5 +12,7 @@ if not defined VisualStudioVersion (
)
:Run
:: We do not want to run the first-time experience.
set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
powershell -NoProfile -ExecutionPolicy unrestricted -Command "%~dp0run.ps1 -- %*"
exit /b %ERRORLEVEL%

4
run.sh
Просмотреть файл

@ -17,5 +17,7 @@ __dotnet=$__toolsLocalPath/dotnetcli/dotnet
cp -fR $__scriptpath/tools-override/* $__toolsLocalPath
DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 $__dotnet $__toolsLocalPath/run.exe $*
# We do not want to run the first-time experience.
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
$__dotnet $__toolsLocalPath/run.exe $*
exit $?