internal static bool IsDotNetCoreAppHostFilename(string filename)
 {
     if (!File.Exists(filename))
     {
         return(false);
     }
     return
         (AppHostUtils.IsDotNetCoreBundleV1(filename) ||
          AppHostUtils.IsDotNetCoreBundleV2_or_AppHost(filename) ||
          IsKnownDotNetCoreAppHost(filename) ||
          AppHostUtils.IsDotNetCoreAppHostV1(filename, out _));
 }