bool IsDebugDocument(string filePath, ProjectScriptInfo config) { var fileName = Path.GetFileName(filePath); if (string.IsNullOrWhiteSpace(fileName)) { return(true); } if (fileName.Contains(".NETFramework,Version=")) { return(true); } if (fileName.EndsWith(".debug", StringComparison.CurrentCultureIgnoreCase)) { return(true); } if (fileName.IndexOf(".debug.", StringComparison.CurrentCultureIgnoreCase) >= 0) { return(true); } return(config.IsIgnoredFilePath(filePath)); }