How to port System.Environment.GetEnvironmentVariable()?

G

goodier

Hi,

I am port some code of .net framework 2.0 to .net compact framework.
There is code that use System.Environment.GetEnvironmentVariable to get
environment variable as some options but it is not supported by compact
framework?

Can anyone suggest if there is some convensions to port this code? for
example, what do people using compact framework normally use for program
options?

Thanks,
 
S

Simon Hart [MVP]

Usually what people do in this regard is use there own config file then
serialize to XML this is what we do. Other folks use the OpenNETCF
implementation which implements a ConfigurationManager which reads app.config
files.
 
N

Neil Cowburn

There is code that use System.Environment.GetEnvironmentVariable to get
environment variable as some options but it is not supported by compact
framework?

Windows CE does not maintain a set of environment variables, so I think
you'll have an incredibly hard time porting the code to the .NET
Compact Framework.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top