Skip to content

Conversation

@pjcollins
Copy link
Member

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.

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`.
jonpryor added a commit to jonpryor/java.interop that referenced this pull request Feb 9, 2021
@jonpryor jonpryor merged commit 479931c into dotnet:main Feb 9, 2021
@pjcollins pjcollins deleted the global-json-root branch February 9, 2021 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants