How to invoke ildasm from command line

Gutfeldt, Peter 1 Reputation point
2022-04-15T17:18:49.103+00:00

I don't have Visual Studio, I am working from Visual Studio Code so I have to use the .NET CLI for everything. I have the .NET 6.0 SDK installed and can create and build dotnet projects just fine from the command line, but when I try ildasm to disassemble a .dll file, I get the classic 'ildasm' is not recognized as an internal or external command, operable program or batch file. error.

I've found online that ildasm.exe is supposed to be located at C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\ildasm.exe, but there is no Windows folder under Microsoft SDKs for me and a search within that folder for ildasm.exe returns nothing.

All the help I can find online is how to run ildasm from within Visual Studio which is useless for me since I have to use the CLI.

Developer technologies .NET .NET CLI
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jaliya Udagedara 2,836 Reputation points MVP Volunteer Moderator
    2022-04-15T19:51:54.99+00:00

    Unfortunately, in order to use ildasm you need to have Visual Studio Installed, because it only gets installed with VS.

    But you can use these free tools, those are much better!

    0 comments No comments

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.