internal static bool IsDotNetAppHostFilename(string filename) { if (!File.Exists(filename)) { return(false); } return (AppHostUtils.IsDotNetBundleV1(filename) || AppHostUtils.IsDotNetBundleV2_or_AppHost(filename) || IsKnownDotNetAppHost(filename) || AppHostUtils.IsDotNetAppHostV1(filename, out _)); }