J
Joe Duchtel
Hello -
I would like to extract the location and file version (not assembly
version) of all referenced assemblies in an assembly.
The following will output the names and assembly versions (plus other
information) ...
Dim lAssemblyNames() As AssemblyName =
[Assembly].GetExecutingAssembly.GetReferencedAssemblies
For Each lAssemblyName As AssemblyName In lAssemblyNames
Console.WriteLine(lAssemblyName.ToString)
Next
.... but I would like to get the file version and location just like
for the executing assembly ...
Dim lAssembly As Assembly = [Assembly].GetExecutingAssembly
Dim lFileVersion As String = FileVersionInfo.GetVersionInfo
(lAssembly.Location).FileVersion.ToString
Is there any way to get this information from the AssemblyName?
Thanks,
Joe
I would like to extract the location and file version (not assembly
version) of all referenced assemblies in an assembly.
The following will output the names and assembly versions (plus other
information) ...
Dim lAssemblyNames() As AssemblyName =
[Assembly].GetExecutingAssembly.GetReferencedAssemblies
For Each lAssemblyName As AssemblyName In lAssemblyNames
Console.WriteLine(lAssemblyName.ToString)
Next
.... but I would like to get the file version and location just like
for the executing assembly ...
Dim lAssembly As Assembly = [Assembly].GetExecutingAssembly
Dim lFileVersion As String = FileVersionInfo.GetVersionInfo
(lAssembly.Location).FileVersion.ToString
Is there any way to get this information from the AssemblyName?
Thanks,
Joe