I also had this problem but when I run it only shows dotnet. But when I changed the app version from 2.1 to 2.2 it got solved and now it shows IIS Esxpress.
for the show hosting process name following code //System.Diagnostics.Process.GetCurrentProcess().ProcessName