Skip to content

Conversation

@jonpryor
Copy link
Contributor

The msbuild-based Jenkins job job has been
failing a lot recently:

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.

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`.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants