Bug 20555 - Xamarin.Android.NUnitLite also implements System.SerializableAttribute that causes ambiguous reference with System.SerializableAttribute in System.dll
Summary: Xamarin.Android.NUnitLite also implements System.SerializableAttribute that c...
Status: VERIFIED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Bindings ()
Version: 4.12.4
Hardware: PC Windows
: Normal enhancement
Target Milestone: 4.16.0
Assignee: Atsushi Eno
URL:
Depends on:
Blocks:
 
Reported: 2014-06-12 13:05 UTC by Horácio J. C. Filho
Modified: 2014-08-12 13:20 UTC (History)
4 users (show)

Tags:
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:
Status:
VERIFIED FIXED

Description Horácio J. C. Filho 2014-06-12 13:05:52 UTC
Hello, 

Xamarin.Android.NUnitLite also implements System.SerializableAttribute causing ambiguous reference with System.SerializableAttribute in System.dll.

The problem is that:
When I use a Xamarin.Android's Unit Test Project, I cannot use Serializable atribute because Xamarin.Android.NUnitLite.dll implements it using System namespace, but I just remove Xamarin.Android.NUnitLite.dll that everything starts to work fine.

Thanks a lot for help me. I love Xamarin :D
Comment 1 Udham Singh 2014-06-12 14:37:34 UTC
I have checked this issue and observed the same behavior mentioned in bug description.

Please refer the screencast : http://www.screencast.com/t/2a2ozyO5

Environment info :

Windows 6.2.9200.0 (64-bit)
Xamarin Studio : 5.0 (build 878)
Xamarin.Android : 4.12.4 (Enterprise Edition)
Comment 2 Atsushi Eno 2014-06-12 15:12:29 UTC
It should not be a big deal, but it will be gone in the next major release. Thanks for the feedback.
[master 3a5ccfd]
Comment 3 Horácio J. C. Filho 2014-08-07 16:49:42 UTC
Thanks a lot for fix it :D :D :D :D I love you guys
Comment 4 Ram Chandra 2014-08-12 13:20:19 UTC
I have checked this issue with following builds:

Windows 6.2.9200.0 (64-bit)
Xamarin Studio: 5.3 (build 421)
Xamarin.Android: 4.16.0 (Enterprise Edition)
Build Information
Release ID: 503000421
Git revision: 3a2ed4627c10d17f41e5c90c98eb4121a17b6cd7
Build date: 2014-08-10 02:34:49-04
Xamarin addins: 0961e1860cd1dcb4e47062f25c40d224979a02fb

I observed that now we are not getting any build error/exception when we create "Android Unit Test Project" and try to use Serializable attribute.

This issue has been fixed. Hence, I am closing this issue.