Dependency check

Is there a way to check if all the dependencies needed to build .Net are met? It is on a production server and Visual Studio is not installed on it.

This is a .Net assembly that requires some GAC: ed components that are not included in the installation package.

+8
dependencies assemblies
source share
4 answers

Here is a simple tool:

enter image description here

http://www.amberfish.net/

Although it does not fully support x64. I will accept any answer that has a similar tool but also supports x64.

+2
source share

Fusion Magazine - One Way, http://www.hanselman.com/blog/DetailingFailedAssemblyLoadsWithTheAssemblyBindingLogViewerTheFusionLogger.aspx

Another way is to install the debugging tools for Windows on another machine with the same beaten CPU, and then copy the installation folder to this server. Then you can use WinDbg to easily fix such problems. Of course, this is not easy for beginners.

+1
source share

For the NDepend database, we have no specific dependency in the GAC. However, NDepend verifies that all assemblies are well deployed during installation, each time NDepend runs. Thus, if the user configures the installation (what happens, we notice), he gets a smart MessageBox explaining what is happening and why he should redeploy NDepend. Thanks to this trick, great support was retained.

Our implementation is simply based on Mono.Cecil , which verifies that all assemblies are present where they should be, with the right assembly version. Performing shallow reads on an assembly happens so fast with Mono.Cecil that it does not slow down the startup time.

+1
source share

ILSpy is an open source .NET browser and decompiler. It also shows dependencies.

A worthy replacement for Reflector , which is no longer free.

0
source share

Source: https://habr.com/ru/post/651055/


All Articles