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

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric St. John <ericstj@microsoft.com>2016-09-16 01:30:53 +0300
committerEric St. John <ericstj@microsoft.com>2016-09-16 01:37:01 +0300
commit013ad32b3e871bd86745e380088c55d877748356 (patch)
tree8c941df65702635c64aeec04489f6a7a5a86394d /init-tools.sh
parentbcb4a69c47069249e373ae6db3e219a265875758 (diff)
Update CLI's NuGet.Frameworks.dll
We need the latest compatibility mappings for NuGet but the CLI hasn't yet picked up a new NuGet drop. Workaround this by manually patching the NuGet.Frameworks.dll in CLI.
Diffstat (limited to 'init-tools.sh')
-rwxr-xr-xinit-tools.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/init-tools.sh b/init-tools.sh
index a3db950ef4..ab8f9df2f2 100755
--- a/init-tools.sh
+++ b/init-tools.sh
@@ -123,6 +123,14 @@ if [ ! -e $__INIT_TOOLS_DONE_MARKER ]; then
echo "ERROR: An error occured when trying to initialize the tools. Please check '$__init_tools_log' for more details."1>&2
exit 1
fi
+
+ echo "Updating CLI NuGet Frameworks map..."
+ cp -u $__TOOLRUNTIME_DIR/NuGet.Frameworks.dll $__TOOLRUNTIME_DIR/dotnetcli/sdk/$__DOTNET_TOOLS_VERSION >> $__init_tools_log
+ if [ "$?" != "0" ]; then
+ echo "ERROR: An error occured when updating Nuget for CLI . Please check '$__init_tools_log' for more details."1>&2
+ exit 1
+ fi
+
touch $__INIT_TOOLS_DONE_MARKER
echo "Done initializing tools."
else