Home All Groups Group Topic Archive Search About

Listing the dlls used by a .NET app and static linking

Author
15 Aug 2006 6:05 PM
James A. Bowery
Is there a tool that lists out all the .NET framework dynamically
loaded libraries that are going to be loaded by a .NET exe?

Also, is there an easy way to statically link a .NET application so
that the .NET framework doesn't need to be installed on the target
machine?

Author
15 Aug 2006 7:43 PM
Greg Young
> Is there a tool that lists out all the .NET framework dynamically
> loaded libraries that are going to be loaded by a .NET exe?

Yes and no .. for the ones that have references added this is readily
available. The assembly may however use Assembly.Load() Assembly.LoadFrom
etc in which case this information would not be available.
http://www.codeproject.com/dotnet/Assemblydependencies.asp?df=100&forumid=31276&exp=0&select=977211
includes an example application which does this .. it is realtively straight
forward.

> Also, is there an easy way to statically link a .NET application so
> that the .NET framework doesn't need to be installed on the target
> machine?

Salamander and some others support things such as this
http://www.remotesoft.com/linker/

Cheers,

Greg Young
MVP - C#
http://codebetter.com/blogs/gregyoung

Show quote
"James A. Bowery" <jabow***@gmail.com> wrote in message
news:1155665108.389083.233410@m73g2000cwd.googlegroups.com...
> Is there a tool that lists out all the .NET framework dynamically
> loaded libraries that are going to be loaded by a .NET exe?
>
> Also, is there an easy way to statically link a .NET application so
> that the .NET framework doesn't need to be installed on the target
> machine?
>

AddThis Social Bookmark Button