Main Site Documentation

Where is System.Environment?


#1

I was trying to use Timer2 from Fezzer so that I can run the timed process in another thread. However I couldn’t find a way to locate System.Environment. The .NET documentation said it is in mscorlib but I don’t find anything in mine.

Where can I find it?


#2

There isn’t a System.Environment in netmf… are you perhaps looking at the full .net?

http://msdn.microsoft.com/en-us/library/ee435793.aspx is the docs for netmf


#3

System.Environment is described in

that’s the part of netmf. So I am confused.


#4

and I saw the Timer2 library from William in Fezzer, which uses System.Environment. I don’t know how it will work then if there is no System.Environment inplemented in netmf.


#5

NET MF 4.1 has System.Environment

The public property TickCount is the real interest there. This gives the tick count in milliseconds since reboot.


#6

It shows that I will just need mscorlib for using TickCount. But VCS is complaining to me that there is no such System.Environment.

Why???


#7

Sorry for the delay. Please reference Microsoft.SPOT.Time.dll. That reminds me, all snippets should include required references at top in comments or something to prevent these egg hunts. Took me a few to find it at first also.


#8

Thanks William!