Can we get all dependincy information (manifest) of an executableusing
c#
?
If so, can anybody give a small example ?
You can, by means of the Assembly class's GetReferencedAssemblies method.
For example:
Assembly MyAssembly = Assembly.LoadFrom("c:\\MyAssembly.dll");
AssemblyName[] AsmNames = Assembly.GetReferencedAssemblies();
You can also get a reference to the currently executing assembly like this:
Assembly CurrentAssembly = Assembly.GetExecutingAssembly();
Regards,
Kevin McNeish
C# MVP
Chief Software Architect, Mere Mortals .NET Framework
www.oakleafsd.com