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