title: How to run ildasm on .Net core exe/assembly?
body: <p>I'm trying to run ildasm (Intermediate Language Disassembler) installed as part of Visual Studio 2019 against .NetCore3.1 console app.</p>
  
  <p>Use Developer command prompt of Visual Studio 2019 and run following command</p>
  
  <blockquote>
    <p>ildasm.exe
    D:\DotNet\IntroductionToCsharp\IntroductionToCsharp\bin\Debug\netcoreapp3.1\IntroductionToCsharp\bin\Debug\netcoreapp3.1\IntroductionToCsharp.exe</p>
  </blockquote>
  
  <p>But following error occur:</p>
  
  <blockquote>
    <p>'D:\DotNet\IntroductionToCsharp\IntroductionToCsharp\bin\Debug\netcoreapp3.1\ IntroductionToCsharp.exe' has no valid CLR header and cannot be disassembled</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/WTBEu.png" alt="this folder content"></p>
  
  <p>Note: running the same command on non-Core (.Net Framework 4.x) exe works fine. Maybe there is something special needed to look at IL in .Net Core?</p>