c# system.globalization.ChineseLunisolarCalendar can't seem to get this to work


I am trying to use the ChineseLunisolarCalendar procedure which should be defined in the System.Globalization class using Visual Studio 2013 c# project, but I can't seem to get it to recognise the ChineseLunisolarCalendar reference within the System.Globalization namespace, any ideas on what I might be missing?
see http://technet.microsoft.com/en-us/network/system.globalization(v=vs.95)

The error I get is as follows:

Error      1      The type or namespace name 'ChineseLunisolarCalendar' does not exist in the namespace 'System.Globalization' (are you missing an assembly reference?

Thanks for any feedback you might be able to provide.

Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

käµfm³d 👽Connect With a Mentor Commented:
As I understand, Windows Phone uses a smaller subset of the Framework. This option may be lacking from that environment.
käµfm³d 👽Commented:
What version of .NET are you targeting? That class seems to come up for me:

Ess KayConnect With a Mentor EntrapenuerCommented:
You need to add a reference to sysglobl.dll. This is already installed in the GAC as sysglobl.

For future reference, if you check the MSDN page for CultureAndRegionInfo you can see that it says

Namespace:  System.Globalization

Assembly:  sysglobl (in sysglobl.dll)

The issue is that namespaces can be spread across different assemblies (for example, System.Globalization.CultureInfo lives in mscorlib.)
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

elschottAuthor Commented:
Thanks for the feedback both comments were useful. My application is a windows phone application so this might be the source of my problem. If I create a straight Windows application the system.globalization works correctly. So it doesn't appear to work with windows phone app.

I tried adding the sysglobl.dll but I get the following error:

"a reference to a higher version or incompatible assembly cannot be added to the project"

any ideas if this is fixable
elschottAuthor Commented:
Apparently it can't be done. Thanks for the feedback.
Ess KayEntrapenuerCommented:
have you tried manually addind the reference,  and packaging it with the program?
All Courses

From novice to tech pro — start learning today.