Does anybody knows how to get information about current environment and platform in .NET Core? Currently there are no Environment class in Core library.
Asked
Active
Viewed 5,726 times
11
-
@Andrei This is .NET Core: http://blogs.msdn.com/b/dotnet/archive/2014/12/04/introducing-net-core.aspx – BCdotWEB Feb 13 '15 at 10:30
-
It's a static class and not a class that you new up. Maybe that's your confusion. – kenny Feb 13 '15 at 14:13
1 Answers
12
System.Environment
is available in the System.Runtime.Extensions
package. Ensure you've referenced that package in your project.json
.
{
"frameworks": {
"dnxcore50": {
"dependencies": {
"System.Runtime.Extensions": "4.0.10-*"
}
}
}
}
-
Thank you! Still they do not implemented yet "Is64BitOperatingSystem" property for .NET Core. – Bogdan Feb 23 '15 at 07:38
-
See also [dotnet/corefx#999](https://github.com/dotnet/corefx/issues/999) on GitHub. – bricelam Apr 22 '15 at 18:46
-
-