title: Determine installed ASP.NET Core Hosting Bundle versions
body: <p>I've looked around a bit on how to get the versions of the installed ASP.NET Core Hosting Bundles. I know that the &quot;Bundle&quot; consists of the ASP.NET Core Module(V2) for IIS, and the .NET Core Runtime itself.</p>
  <p>The Problem is, that I have a ASP.NET Core 2.1 and a ASP.NET Core 3.1 app that need to run on the very same IIS, which is why I need to know if both &quot;bundles&quot; are installed. Most answers around here focus on the .NET Core runtime itself and end on <code>dotnet --info</code> or <code>dotnet --list-runtimes</code> which shows me all the installed runtimes, but iin case of <code>--info</code> only the highest installed &quot;host&quot;.</p>
  <p>Since some older answers center around the path that dotnet is installed in, I looked that one up, and to my surprise, within <code>%ProgramFiles%\dotnet</code> there is a <code>host</code> folder contianing subfolders with the versions of the bundles that were installed. Within each is a <code>hostfxr.dll</code>.</p>
  <p>So my question is, can I determine by that folder structure which versions of the ASP.NET Core Hosting bundles were installed?</p>