From 35562063905af21c47182fa58b0fa647e5416f52 Mon Sep 17 00:00:00 2001 From: Peter Collins Date: Tue, 9 Feb 2021 15:12:17 -0500 Subject: [PATCH] [build] Move global.json file to root directory Context: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=4454535&view=logs&jobId=f31c9f97-4411-58e7-49ac-fc73f645e6b6&j=f31c9f97-4411-58e7-49ac-fc73f645e6b6&t=35e41a6f-4381-52eb-e0f2-d95c19469a7f We're seeing a Java.Interop build attempt fail on Windows during a NuGet restore: ##[error]The nuget command failed with exit code(1) and error(D:\a\1\s\external\xamarin-android-tools\src\Microsoft.Android.Build.BaseTasks\Microsoft.Android.Build.BaseTasks.csproj(4,3): error : C:\hostedtoolcache\windows\dotnet\sdk\3.1.300\Sdks\Microsoft.DotNet.Arcade.Sdk\Sdk not found. Check that a recent enough .NET SDK is installed and/or increase the version specified in global.json. I suspect that the out of repo restore attempt is failing to find the `global.json` file next to `Microsoft.Android.Build.BaseTasks.csproj`. To fix this we can move the file to the top of the repo, next to `Xamarin.Android.Tools.sln`. --- src/Microsoft.Android.Build.BaseTasks/global.json => global.json | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/Microsoft.Android.Build.BaseTasks/global.json => global.json (100%) diff --git a/src/Microsoft.Android.Build.BaseTasks/global.json b/global.json similarity index 100% rename from src/Microsoft.Android.Build.BaseTasks/global.json rename to global.json