Which tool can I use to see which DLLs a DLL contains?

Markus Freitag 3,786 Reputation points
2023-10-14T16:46:43.1466667+00:00

https://learn.microsoft.com/en-us/sysinternals/downloads/listdlls

Like this

C:\Test\App\InterfaceSolutionCppWrapper\Debug>listdlls -v mfcclient
Works not.

Which tool can I use to see which third DLL contains which other DLLs and which version? How do I call this to see the DLLs. Do you have an example?

System.Net.Http.Formatting

Newtonsoft.Json.dll

NuGet\Install-Package Newtonsoft.Json -Version 6.0.1

I'm currently using these two DLLs. These work in a certain combination, version. If I take the current one it doesn't work anymore.

//System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or 
//one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
337 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,008 questions
{count} votes

Accepted answer
  1. Karen Payne MVP 35,436 Reputation points
    2023-10-15T22:37:03.6966667+00:00

    Jetbrains dotPeek which is free.

    dotpeek

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Olaf Helper 45,101 Reputation points
    2023-10-14T17:54:18.6433333+00:00

    Which tool can I use to see which third DLL contains which other DLLs and which version?

    See https://www.dependencywalker.com/


  2. KOZ6.0 6,490 Reputation points
    2023-10-16T01:09:04.05+00:00

    Telerik JustDecompile
    It's free. But it doesn't support vs2022 :(

    System.Net.Http.Formatting


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.