[Mono-bugs] [Bug 567911] New: TimeZoneInfo is defined in both mscorlib and System.Core in MonoTouch stack

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Jan 3 15:50:00 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=567911

http://bugzilla.novell.com/show_bug.cgi?id=567911#c0


           Summary: TimeZoneInfo is defined in both mscorlib and
                    System.Core in MonoTouch stack
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: x86
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Runtime
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: rswood at elyceum.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: Customer
           Blocker: Yes


Description of Problem:
Compile fails on code that contains a reference to the TimeZoneInfo class and
the System.Core DLL in a MonoTouch roject.

Steps to reproduce the problem:
1. Create an empty MonoTouch project
2. Add an empty class called "TimeZoneInfoMonoTouch" to project
3. In the constructor, add TimeZoneInfo tzi;

Actual Results:
Compilation fails with this error:

~/Documents/Projects/TimeZoneInfoMonoTouch/TimeZoneInfoMonoTouch/TimeZoneInfoDefinedMultipleTimes.cs(13,25):
error CS0433: The imported type `System.TimeZoneInfo' is defined multiple times
/Developer/MonoTouch/usr/lib/mono/2.1/mscorlib.dll (Location of the symbol
related to previous error)
/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll (Location of the symbol
related to previous error)

Expected Results:
Compilation succeeds.

How often does this happen? 
Every time.

Additional Information:
According to MSDN, TimeZoneInfo is defined in System.Core.dll.

See: http://msdn.microsoft.com/en-us/library/system.timezoneinfo.aspx

This problem seems only to affect the MonoTouch version of the mscorlib
runtime. A .NET command line application successfully compiles with a
TimeZoneInfo reference.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list