Referenced Assembly Namd and Version
-
Hi, I am wanting to know what I would need to do to retrieve a list of the referenced assemblies names and versions at runtime and add them to list etc. Thanks, Andrew.
Use the following System.Reflection.Assembly objAssembly = System.Reflection.Assembly.LoadFrom(@"Load your assembly( filename)"); objAssembly.GetReferencedAssemblies(); gives you the referenced assemblies.
Koushik
-
Use the following System.Reflection.Assembly objAssembly = System.Reflection.Assembly.LoadFrom(@"Load your assembly( filename)"); objAssembly.GetReferencedAssemblies(); gives you the referenced assemblies.
Koushik
-
Any examples of how to put this information into a grid with name and version colums? Thanks, Andrew.
construct a datatable at run time with Name and Version columns and after obtaining the referenced assemblies add rows to the datatable ..now u can bind this table to datagrid.
Koushik
-
construct a datatable at run time with Name and Version columns and after obtaining the referenced assemblies add rows to the datatable ..now u can bind this table to datagrid.
Koushik