Commit 0ec02f4
authored
[build] Fix the MSBuild build (#1232)
The [`msbuild`-based Jenkins job][jenkins-msbuild] job has been
failing a lot recently:
[jenkins-msbuild]: https://jenkins.mono-project.com/view/Xamarin.Android/job/xamarin-android-msbuild/
error MSB3644: The reference assemblies for framework "MonoAndroid,Version=v1.0" were not found.
The cause of the error is that *when there is no prebuilt mono runtime
to download*, this file does not exist:
bin/Debug/lib/xamarin.android/xbuild-frameworks/MonoAndroid/v1.0/RedistList/FrameworkList.xml
The above file is created by the
`build-tools/scripts/mono-runtimes.mdproj` build, and
`mono-runtimes.mdproj` *is not being built*. Without a mono build,
there is no `MonoAndroid/v1.0` framework, and everything fails.
I don't know when this actually broke, or what change is responsible.
(It works with `xbuild`!)
Attempt to improve reliability by adding `mono-runtimes.mdproj` to
`$(MSBUILD_PREPARE_PROJS)`. This will cause the `msbuild`-based build
to explicitly build `mono-runtimes.mdproj` *before* attempting to
build `Xamarin.Android.Build.Tasks.csproj` or `Xamarin.Android.sln`.1 parent 4bec82d commit 0ec02f4
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
0 commit comments