The following macro shows project assembly name and then all referenced
assemblies names and paths:
Sub ShowAssemblies()
Dim project As EnvDTE.Project
project = DTE.Solution.Projects.Item(1)
Dim text As String
' get project assembly
text = "Project assembly: "
text &= project.Properties.Item("AssemblyName").Value.ToString
text &= vbCrLf & vbCrLf
' get references assemblies (will not work for web site projects)
Dim vsProject As VSLangProj.VSProject
Try
vsProject = DirectCast(project.Object, VSLangProj.VSProject)
Catch ex As Exception
End Try
If Not vsProject Is Nothing Then
Dim reference As VSLangProj.Reference
For Each reference In vsProject.References
text &= reference.Name & ": "
text &= reference.Path & vbCrLf
Next
End If
' show results
MessageBox.Show(text)
End Sub
Create this macro and run, see
http://www.helixoft.com/blog/archives/6
if you don't know how.
--
Peter Macej
Helixoft -
http://www.helixoft.com
VSdocman - Commenter and generator of class documentation for C#, VB
..NET and ASP .NET code