Get .NET Runtime Directory

by May 10, 2012

Ok, this is more for the developers. To find out where your .NET Runtime folder is, try this line:

PS> $path = [System.Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory()
PS> $path

You could use this to extract the .NET Framework version your PowerShell is using, or you can look up all the DLL files that could be loaded into PowerShell:

PS> dir $path *.dll

Twitter This Tip! ReTweet this Tip!