Link to home
Start Free TrialLog in
Avatar of elschott
elschott

asked on

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

Hello

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)
and
http://technet.microsoft.com/en-us/network/system.globalization.chineselunisolarcalendar(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.

el
Avatar of kaufmed
kaufmed
Flag of United States of America image

What version of .NET are you targeting? That class seems to come up for me:

User generated image
SOLUTION
Avatar of Ess Kay
Ess Kay
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of elschott
elschott

ASKER

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
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Apparently it can't be done. Thanks for the feedback.
have you tried manually addind the reference,  and packaging it with the program?