473,395 Members | 1,502 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,395 software developers and data experts.

Tool or code to display referenced assemblies??

Hello,

is there a tool around that given an assembly shows the referenced
assemblies???
Any code snippet to do this programmatically???
Regards,
Bob Rock
Nov 22 '05 #1
8 2193
Bob Rock wrote:
Hello,

is there a tool around that given an assembly shows the referenced
assemblies???
Any code snippet to do this programmatically???


The framework SDK has a sample called ADepends. It's in

"Tool Developers Guide\Samples\adepends"

under the SDK directory.

--
mikeb
Nov 22 '05 #2
Bob Rock wrote:
Hello,

is there a tool around that given an assembly shows the referenced
assemblies???
Any code snippet to do this programmatically???


The framework SDK has a sample called ADepends. It's in

"Tool Developers Guide\Samples\adepends"

under the SDK directory.

--
mikeb
Nov 22 '05 #3
"Bob Rock" <no***************************@hotmail.com> wrote in
news:ea**************@TK2MSFTNGP12.phx.gbl:
Hello,

is there a tool around that given an assembly shows the referenced
assemblies???
Any code snippet to do this programmatically???


Bob,

Look up the System.Reflection.Assembly.GetReferencedAssemblies
method in the help file. It isn't documented very well, so you may
also want to search Google groups (groups.google.com) and MSDN
(msdn.microsoft.com) for more info on how it's used.

Hope this helps.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/
Nov 22 '05 #4
"Bob Rock" <no***************************@hotmail.com> wrote in
news:ea**************@TK2MSFTNGP12.phx.gbl:
Hello,

is there a tool around that given an assembly shows the referenced
assemblies???
Any code snippet to do this programmatically???


Bob,

Look up the System.Reflection.Assembly.GetReferencedAssemblies
method in the help file. It isn't documented very well, so you may
also want to search Google groups (groups.google.com) and MSDN
(msdn.microsoft.com) for more info on how it's used.

Hope this helps.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/
Nov 22 '05 #5
For a gui tool, .net reflector is nice.

--
William Stacey, MVP

"Bob Rock" <no***************************@hotmail.com> wrote in message
news:ea**************@TK2MSFTNGP12.phx.gbl...
Hello,

is there a tool around that given an assembly shows the referenced
assemblies???
Any code snippet to do this programmatically???
Regards,
Bob Rock


Nov 22 '05 #6
For a gui tool, .net reflector is nice.

--
William Stacey, MVP

"Bob Rock" <no***************************@hotmail.com> wrote in message
news:ea**************@TK2MSFTNGP12.phx.gbl...
Hello,

is there a tool around that given an assembly shows the referenced
assemblies???
Any code snippet to do this programmatically???
Regards,
Bob Rock


Nov 22 '05 #7
Assuming "asm" is a reference to an existing assembly, then the
referenced ones' names can be retrieved via:

System.Reflection.AssemblyName[] refs =
asm.GetReferencedAssemblies();

Unfortunately, this is just the assembly names, not the actual
assembly references that you may find useful.
I'd also be interested if anyone knew a way to get to the actual
referenced assemblies.

Nov 22 '05 #8
Assuming "asm" is a reference to an existing assembly, then the
referenced ones' names can be retrieved via:

System.Reflection.AssemblyName[] refs =
asm.GetReferencedAssemblies();

Unfortunately, this is just the assembly names, not the actual
assembly references that you may find useful.
I'd also be interested if anyone knew a way to get to the actual
referenced assemblies.

Nov 22 '05 #9

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

Similar topics

8
by: Bob Rock | last post by:
Hello, is there a tool around that given an assembly shows the referenced assemblies??? Any code snippet to do this programmatically??? Regards, Bob Rock
4
by: Jimi | last post by:
Given a C# project file path, can I use reflection to get all the assemblies referenced by the project? e.g., I know the path of a C# project, say, "c:\SomeProject.csproj", and I want to load...
0
by: Daniel Perron | last post by:
Hi, I was trying to use Galois.Net to specify code generators and I had to look for some text template tool to simplify the syntax. I was looking for something similar to the syntax of an...
1
by: sarge | last post by:
error PRJ0019: A tool returned an error code from "Copying assemblies to target directory..." I got this when I added a reference to a project. The reference was to a dll created in another...
2
by: BH | last post by:
My question may be a bit odd. Right now I can see that all referenced assemblies in my project are compiled into the application assembly so when I deploy the application, I don't see those...
5
by: David | last post by:
From what I have been reading, I can use the VBC.exe tool to recompile a site. But I'm not sure how to do this. I simply want to recompile the vb files in my website. I am not a programmer and...
2
by: Nathan Wiegman | last post by:
Hi, I am using the XSD utility to generate schemas for some of the classes that we serialize in our project. Everything works fine and dandy until I try and create a schema for a class that...
2
by: Anders | last post by:
Hi We have used Resharper with great results the last year. But thier EAP 2,0 verison is at current state useless. Does anyone know a tool which give the posiblity to auto import namespace...
5
by: Venkat | last post by:
Hi, My application is splitted into more than one assembly. And I want to clean up the methods which are not called or not used among any of the assemblies. And also I want to remove the code...
4
by: Mike Bromwich | last post by:
Hi Our product can interact with a number of third party assemblies, as long as the customer has purchased and installed these libraries. We do not want to add references to these assemblies...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.