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

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo.moya@xamarin.com>2019-04-12 18:32:51 +0300
committerRodrigo Moya <rodrigo@gnome-db.org>2019-04-25 12:51:32 +0300
commitdb0febeabce5a3966175347bfd6bd1c48b886081 (patch)
treeeecc9ae3df59ee049245e98ae04d1d922cc5dbd5 /Makefile
parent7372aa8614fcb9e56889e6beec5b5fc7ad150052 (diff)
[Build] Hard code .NET Core PATH to avoid VSTS pre-installed versions being used
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ad738cef89..8d446a8e56 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,9 @@ MONO_AOT:=MONO_PATH="$(AOT_DIRECTORIES):$(MSBUILD_PATH):$(MONO_PATH)" $(AOT_COMM
MSBUILD_LIBRARIES=Microsoft.Build.dll Microsoft.Build.Framework.dll Microsoft.Build.Utilities.Core.dll
MSBUILD_DLLS=$(patsubst %, $(MSBUILD_PATH)/%, $(MSBUILD_LIBRARIES))
-all: update_submodules all-recursive
+# Set $PATH to point to provisioned .NET Core and avoid the ones provisioned by VSTS itself
+all: export PATH:="/usr/local/share/dotnet:$(PATH)"
+all: print_config update_submodules all-recursive
GIT_FOUND = $$(echo $$(which git))
SYNC_SUBMODULES = \
@@ -35,6 +37,11 @@ SYNC_SUBMODULES = \
git submodule update --init --recursive || exit 1; \
fi
+print_config:
+ @echo "PATH is $(PATH)"
+ @echo ".NET Core `dotnet --version` installed in `which dotnet`"
+ @dotnet --list-sdks
+
update_submodules:
@$(SYNC_SUBMODULES)