Find the DotNet Directory

  • Thread starter Thread starter Elmo Watson
  • Start date Start date
E

Elmo Watson

How do I programmatically find the most recent DotNet Directory on the
machine of the app that's running?

Is there a variable/method/property?
 
Elmo Watson said:
How do I programmatically find the most recent DotNet Directory on the
machine of the app that's running?

Is there a variable/method/property?

By "most recent", do you mean the framework version?

Best Regards,

Andy
 
yes - - or - at least the Framework directory - - I'm using the Browse for
folder dialog - - none of the items in the built in enum list point
here. - - I'm trying to set the 'root folder' to that folder
 
Hi Elmo,

What about to use one of the standard .NET types to get that info

Type t = typeof(string);
Console.WriteLine(Path.GetDirectoryName(t.Assembly.Location));
 
Back
Top