Detecting Net Framework directory

You can use

System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory()

or

HttpRuntime.ClrInstallDirectory property ( don’t forget to add reference to System.Web.dll )


 
 
 

Leave a Reply