[MonoDevelop] Why we are getting the gmcs compiler error "The type forwarder for type 'System.TimeZoneInfo' in assembly 'mscorlib' v2.0.0.0, has circular dependency." and the proper way to fix it?

Frank Chang frankchang91 at gmail.com
Mon Feb 29 02:13:12 UTC 2016


     When I compile a particular C# project using Monodevelop for Ubuntu
Linux 15.10's Build General dropdown list setting of Mono-.NET 4.0, I get
this gmcs compiler error: The type forwarder for type 'System.TimeZoneInfo'
in assembly 'mscorlib' v2.0.0.0, Culture=neutral ,has circular dependency.
    This are the lines of C# source code where the compiler error is
detected.

    List<TimeZoneInfo> ISettingsManager.GetServerTimeZoneList()
     {
            using (var manager = new SettingsManager())
            {
                return manager.GetServerTimeZoneList();
            }
     }

   We would like to know why the monodevelop compile subsytem is
pulling in assembly v2.0.0.0 from the
 Mono-.NET 4.0 build environment.

    The primitive way I fixed the above problem was to compile the specific
C# project using Monodevelop for Ubuntu Linux 15.10's Build General
dropdown list setting of Mono-.NET 4.5.
   I was told this is not the preferred way to fix the gmcs compiler error:
The type forwarder for type 'System.TimeZoneInfo' in assembly 'mscorlib'
v2.0.0.0, Culture=neutral ,has circular dependency.

    I would like to know why we are getting the gmcs compiler error  "The
type forwarder for type 'System.TimeZoneInfo' in assembly 'mscorlib'
v2.0.0.0, Culture=neutral ,has circular dependency." as well as the proper
way to fix it.

   Any help is greatly appreciated.
       Thank you.
           Frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodevelop-list/attachments/20160228/a336e606/attachment.html>


More information about the Monodevelop-list mailing list