Updated on Kisan Patel
To get the full path to the folder that the current version of .NET, you nee to use the GetRuntimeDirectoryRuntimeDirectory
method (implemented in System.Runtime.InteropServices.RuntimeEnvironment).
class Program { static void Main(string[] args) { Console.WriteLine("path of the current version of .NET: \n" + System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory()); Console.ReadKey(); } }
Output of the above program…