Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build] fix Windows build on a fresh machine (dotnet#1132)
We discovered the build fails on Windows if you: - wipe out `~\android-toolchain` - `git clean -dxf` - `msbuild Xamarin.Android.sln /t:Prepare` - Or just have a fresh machine We need to reorder the steps of what happens in `PrepareWindows.targets`: 1. `git submodule update` 2. build `xa-prep-tasks`, which gets `.nuget\NuGet.exe` 2. `nuget restore` 3. build `android-toolchain` , which is the missing step that installs the Android SDK 4. proceed with everything else Without step no. 3, the missing Android SDK that gets installed to `~\android-toolchain` causes the `<JdkInfo />` task to fail.
- Loading branch information