473,322 Members | 1,480 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Display Project References

Hi everyone,

How can I read and then display information (Name, Full Path, and Date
Modified)all of the references in a VB.NET project?

I have been unable to find any information in all of my searching so
any help you can give is greatly appreciated!

Thanks.

Nov 21 '05 #1
6 1172
I should have also mentioned that I'm trying to read them in code and
populate a listview with the information...thanks again!

Nov 21 '05 #2
Look at the AppDomain class. You can use
AppDomain.CurrentDomain.GetAssemblies(). Perhaps this will help.

Nov 21 '05 #3
Since this is becoming a FAQ, I have written a MSDN Knowledge Base article
about it:

HOWTO: Getting information specific to VB.NET and C# projects from an add-in
or macro
http://support.microsoft.com/default...b;en-us;555467

My web site (below) has a section with resources about extensibility, just
in case you need more info.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

<uf*********@yahoo.com> escribió en el mensaje
news:11**********************@g47g2000cwa.googlegr oups.com...
I should have also mentioned that I'm trying to read them in code and
populate a listview with the information...thanks again!

Nov 21 '05 #4
If he means at run-time or from a compiled assembly, the approach is the
System.Reflection.Assembly.GetReferencedAssemblies .

If he means at design-time from a source code project in the IDE, the
approach is the one of my other post.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Chris Dunaway" <du******@gmail.com> escribió en el mensaje
news:11**********************@g44g2000cwa.googlegr oups.com...
Look at the AppDomain class. You can use
AppDomain.CurrentDomain.GetAssemblies(). Perhaps this will help.

Nov 21 '05 #5
Thank you Carlos for your reply....

I am trying to read the project's references at runtime and populate a
listview with information about the reference (Name, Full Path, and
Date Modified). I tried
System.Reflection.Assembly.GetReferencedAssemblies , but
GetReferencedAssemblies was not available in intellisense.

I'm really struggling with this, do you think you could post some code
that will read each of the project's references and just display the
information in a message box? I would be so grateful.

Thanks.

Nov 21 '05 #6
Hi,

I don´t know why Intellisense is broken on your IDE but it works for me and
the code is:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

Dim objAssembly As System.Reflection.Assembly
Dim objAssemblyName As System.Reflection.AssemblyName

objAssembly = System.Reflection.Assembly.GetExecutingAssembly()

For Each objAssemblyName In objAssembly.GetReferencedAssemblies()
MessageBox.Show(objAssemblyName.ToString)
Next

End Sub
--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

<uf*********@yahoo.com> escribió en el mensaje
news:11**********************@z14g2000cwz.googlegr oups.com...
Thank you Carlos for your reply....

I am trying to read the project's references at runtime and populate a
listview with information about the reference (Name, Full Path, and
Date Modified). I tried
System.Reflection.Assembly.GetReferencedAssemblies , but
GetReferencedAssemblies was not available in intellisense.

I'm really struggling with this, do you think you could post some code
that will read each of the project's references and just display the
information in a message box? I would be so grateful.

Thanks.

Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div...
15
by: cody | last post by:
We have a huge project, the solutuion spans 50 projects growing. Everytime I want to start the project I have to wait nearly over 1 minute for the compiler to complete building. This is...
7
by: George Copeland | last post by:
This is a request for assistance analyzing a problem we are experiencing in our VB6 development environment. All our code is developed in VB6, and our persistance layer is SQL Server. We are...
2
by: Joe Wedel | last post by:
I have a Solution with 4 Projects, one of which is not loading. I get the error message: Microsoft Development Environment Unable to read the project file 'CouncilAgenda.vbproj'. The project...
2
by: sonu | last post by:
Hi all, I have developed an application in which there are uptill now 12 projects and few of them are dependent on each other. The problem is I am not able to manage the references across...
9
by: Anubhav Jain | last post by:
Hi, I am having few .net source files(.cs or .vb) and I want to dynamically generate the corresponding .net project file(.csproj or .vbproj) for them without using visual studio.So that I could...
3
by: Jerad Rose | last post by:
This is regarding Visual Studio 2003 (framework 1.1). We have several projects/libraries. Of course, many of these reference each other. If we only had one solution, we would simply add all of...
2
by: AMDRIT | last post by:
Hello Everyone, I am having an issue with my solution and hoping that you all can suggest a resolution. I have a common library that (A) that three other projects make reference of (B,C,D). ...
3
by: DonJefe | last post by:
Does anyone have experience using project->project references in large solutions? What are the plus/minuses that you have found? Currently, we are using the binary assembly references for our...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.