Need to restore the build tools CLI before trying to use it. Now we use it for both restore/publish of build tools.
This commit is contained in:
parent
da688f71c2
commit
dca7a4fd41
1 changed files with 6 additions and 6 deletions
|
@ -33,6 +33,11 @@ if [ ! -e "$__PROJECT_JSON_FILE" ]; then
|
||||||
mkdir -p "$__PROJECT_JSON_PATH"
|
mkdir -p "$__PROJECT_JSON_PATH"
|
||||||
echo "$__PROJECT_JSON_CONTENTS" > "$__PROJECT_JSON_FILE"
|
echo "$__PROJECT_JSON_CONTENTS" > "$__PROJECT_JSON_FILE"
|
||||||
|
|
||||||
|
if [ ! -d "$__BUILD_TOOLS_CLI_DIR" ]; then
|
||||||
|
echo "Installing Build Tools CLI Version: $__BUILD_TOOLS_CLI_VERSION"
|
||||||
|
"$DIR/scripts/obtain/dotnet-install.sh" --channel rel-1.0.0 --version "$__BUILD_TOOLS_CLI_VERSION" --install-dir "$__BUILD_TOOLS_CLI_DIR"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -d "$__BUILD_TOOLS_PATH" ]; then
|
if [ ! -d "$__BUILD_TOOLS_PATH" ]; then
|
||||||
echo "Restoring build tools version $__BUILD_TOOLS_PACKAGE_VERSION..."
|
echo "Restoring build tools version $__BUILD_TOOLS_PACKAGE_VERSION..."
|
||||||
"$__DOTNET_CMD" restore "$__PROJECT_JSON_FILE" --packages "$NUGET_PACKAGES" --source "$__BUILD_TOOLS_SOURCE"
|
"$__DOTNET_CMD" restore "$__PROJECT_JSON_FILE" --packages "$NUGET_PACKAGES" --source "$__BUILD_TOOLS_SOURCE"
|
||||||
|
@ -41,11 +46,6 @@ if [ ! -e "$__PROJECT_JSON_FILE" ]; then
|
||||||
find .
|
find .
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d "$__BUILD_TOOLS_CLI_DIR" ]; then
|
|
||||||
echo "Installing Build Tools CLI Version: $__BUILD_TOOLS_CLI_VERSION"
|
|
||||||
"$DIR/scripts/obtain/dotnet-install.sh" --channel rel-1.0.0 --version "$__BUILD_TOOLS_CLI_VERSION" --install-dir "$__BUILD_TOOLS_CLI_DIR"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Initializing build tools..."
|
echo "Initializing build tools..."
|
||||||
"$__BUILD_TOOLS_PATH/init-tools.sh" "$DIR" "$__DOTNET_CMD" "$__BUILD_TOOLS_DIR" >> "$__init_tools_log" 2>&1
|
"$__BUILD_TOOLS_PATH/init-tools.sh" "$DIR" "$__DOTNET_CMD" "$__BUILD_TOOLS_DIR" >> "$__init_tools_log" 2>&1
|
||||||
echo "Init-Tools completed for BuildTools Version: $__BUILD_TOOLS_PACKAGE_VERSION" > "$__BUILD_TOOLS_SEMAPHORE"
|
echo "Init-Tools completed for BuildTools Version: $__BUILD_TOOLS_PACKAGE_VERSION" > "$__BUILD_TOOLS_SEMAPHORE"
|
||||||
|
|
Loading…
Reference in a new issue