diff options
author | Rodrigo Moya <rodrigo.moya@xamarin.com> | 2019-04-12 18:32:51 +0300 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2019-04-25 12:51:32 +0300 |
commit | db0febeabce5a3966175347bfd6bd1c48b886081 (patch) | |
tree | eecc9ae3df59ee049245e98ae04d1d922cc5dbd5 /Makefile | |
parent | 7372aa8614fcb9e56889e6beec5b5fc7ad150052 (diff) |
[Build] Hard code .NET Core PATH to avoid VSTS pre-installed versions being used
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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) |