Get folder from Assembly

  • Thread starter Thread starter Jon
  • Start date Start date
J

Jon

Hello all,

How do you get a folder in your web application from a calling
assembly?

Thanks,

Jon
 
Hi,
Hello all,

How do you get a folder in your web application from a calling
assembly?

Thanks,

Jon

You mean, how do you get the folder in which the assembly is located?

If yes, I do this:

FileInfo fileAssembly = new FileInfo( myAssembly.Location );

and then:

fileAssembly.Directory;

HTH,
Laurent
 
Back
Top