Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's a good tool to analyse assembly dependency in .NET application [closed]

I know there are many tools. I want to find out a good tool to show me what assembly is missing. I encountered an exception saying that one of the dependency assembly might be missing when I tried to run a .NET app.

UPDATE

I want to test it on live server. Thus, ideally, I can run it without changes to the server. I can install application on the server.

Thanks in advance.

like image 630
Pingpong Avatar asked Nov 28 '11 11:11

Pingpong


People also ask

Which is used to determine the application dependencies in assemblies?

The assembly is the smallest versionable unit in the common language runtime. All types and resources in the same assembly are versioned as a unit. The assembly manifest describes the version dependencies you specify for any dependent assemblies.

How do I find app dependencies?

You can view the dependent components from the Solutions area of Power Apps. Sign in to Power Apps and select Solutions from the left navigation. Open the solution you want, select the component you want, on the command bar select ..., and then select Show dependencies.

What are .NET dependencies?

Diamond dependenciesIt's a common situation for a . NET project to have multiple versions of a package in its dependency tree. For example, an app depends on two NuGet packages, each of which depends on different versions of the same package. A diamond dependency now exists in the app's dependency graph.


2 Answers

To check for runtime binding errors, one simple and efficient way is to turn on Fusion log (just change HKLM\Software\Microsoft\Fusion\ForceLog to 1 in the registry). This will allow you to check the detailed logs on the error in the Exception.FusionLog property and also examine details via the Assembly Binding Log Viewer.

Scott Hanselman has a good article on the point.

like image 121
mcm69 Avatar answered Sep 17 '22 15:09

mcm69


I once used Dependeny Walker, specifically for .NET is the Assembly Depenency Analyser

like image 28
slfan Avatar answered Sep 20 '22 15:09

slfan