public static string MappingFilePath(this EnvDTE.Project project) { string defaultFileName = project.DefaultMappingFileName(); if (File.Exists(defaultFileName)) { return(defaultFileName); } ThreadHelper.ThrowIfNotOnUIThread(); var assemblyName = project.Properties.Item("AssemblyName").Value; if (assemblyName == null) { return(null); } string mappingFile = Path.Combine(project.FullName, assemblyName + "ndo.xml"); if (File.Exists(mappingFile)) { return(mappingFile); } return(null); }