473,401 Members | 2,127 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,401 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 2195
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.