How to port System.Environment.GetEnvironmentVariable()?

  • Thread starter Thread starter goodier
  • Start date Start date
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,
 
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.
 
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.
 
Back
Top