Bug 13427 - If Xamarin.Android is already installed and we install MonoFramework, we are getting build error for Android application
Summary: If Xamarin.Android is already installed and we install MonoFramework, we are ...
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 4.8.x
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: narayanp
Depends on:
Reported: 2013-07-24 01:48 UTC by narayanp
Modified: 2013-07-30 09:01 UTC (History)
5 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description narayanp 2013-07-24 01:48:12 UTC
Steps to Reproduce this issue:
Condition: Xamarin.Android should installed on Machine.
1. Install MonoFramework on machine.
2. Create or open Android application.
3. Build the application.

Actual result: If user install Mono on machine having already Xamarin.Android installed and create or open Android application, Application giving build error which is mentioned in gist https://gist.github.com/saurabh360/deed68d63f580740d00a

Expected Result: Application should build successfully successfully.

Environment details:
All Mac
X.Android 4.8.0-13
Mono 3.2.0

Regression Status:
NOT A REGRESSION: This is happening with stable environment Mono 2.10.12 and Xamarin.Android 4.6.8-7
Comment 1 narayanp 2013-07-24 01:51:07 UTC
An update to the issue:

If we uninstall X.Android and then again install Xamarin.Android, then it works fine
Comment 2 Jonathan Pryor 2013-07-24 13:32:28 UTC
@narayanp: My guess is that /Library/Frameworks/Mono.framework/External/xbuild is being replaced on Mono.framework install, removing the /Library/Frameworks/Mono.framework/External/xbuild/Novell symlink.

Please repeat steps (0) and (1), then do:

$ ls -l /Library/Frameworks/Mono.framework/External/xbuild/
Comment 3 Duncan Mak 2013-07-24 14:25:17 UTC
I'll look into getting this fixed for 3.2.1
Comment 4 Duncan Mak 2013-07-26 14:24:09 UTC
I tried to reproduce this, and it doesn't happen to me.

I installed 3.2.0 (https://wrench.internalx.com/Wrench/ViewLane.aspx?lane_id=650&host_id=1&revision_id=189534) and then a 3.2.2 master build (https://wrench.internalx.com/Wrench/ViewLane.aspx?lane_id=647&host_id=1&revision_id=193787) and my xbuild directory is intact.
Comment 5 Nischal 2013-07-29 10:46:15 UTC
Today I have checked this issue with following builds:

X.S 4.1.8(build 8)
Mono 3.2.1
Xamarin.Android 4.8.0-13

We are still getting the same issue. To reproduce this issue Xamarin.Android should be installed on Machine and then install Mono and try to build the android application.

This is the gist of build error: https://gist.github.com/saurabh360/c31cf6b89be759ce62ce
Comment 6 Peter Collins 2013-07-29 18:16:02 UTC
I'm also unable to reproduce this one. What version of mono do you have installed *before* running the mono installer? 

Could you please attach a screencast with the exact steps you are taking to reproduce this issue?
Comment 7 narayanp 2013-07-30 01:47:36 UTC
This is the screencast for the same: http://screencast.com/t/HxECGSpYHh to reproduce this issue.

Checked on following builds:
X.S 4.1.8(build 8)
Mono 3.2.1(no/e82c956)
Xamarin.Android 4.8.0-13

Before this Mono was Mono 3.2.1 ((no/675bb0f)
Comment 8 PJ 2013-07-30 09:01:02 UTC
Ok so the problem is that you're removing the Mono.Framework directory in /Library

This is not done when you simply install Mono again without removing that directory, and that's why peter and duncan could not reproduce.

It used to be done by the UninstallMono script that *used* to be included with the Mono .dmg, but that's not even included any longer.

At this point, the original description is incorrect. You must include a crucial step like deleting a folder, that omission wasted everyone's time here.

While I know it's weird that we have no true uninstaller for any of the products, this bug is definitely INVALID.  You're deleting something directly that Xamarin.Android needs. Please take care to list *all* steps taken in bug descriptions.