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
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\

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!