public static IEnumerable <string> GetNHVFilesFromCSProj(CSProjFile csproj, string csprojPath, IFileController controller)
 {
     return(csproj
            .GetEmbeddedResources(f => f.EndsWith(".nhv.xml", StringComparison.OrdinalIgnoreCase))
            .Select(f => controller.ToAbsolutePath(f, csprojPath))
            .ToList());
 }
 public static IEnumerable <string> GetPossibleNHibernateConfigFilesFromCSProj(CSProjFile csproj, IFileController controller)
 {
     return(csproj
            .GetEmbeddedResources(f => f.EndsWith(".cfg.xml", StringComparison.OrdinalIgnoreCase))
            .Concat(csproj.GetFilesMarkedNone(f => f.EndsWith(".cfg.xml", StringComparison.OrdinalIgnoreCase)))
            .Concat(csproj.GetContentFiles(f => f.EndsWith(".cfg.xml", StringComparison.OrdinalIgnoreCase)))
            .Concat(csproj.GetResourceFiles(f => f.EndsWith(".cfg.xml", StringComparison.OrdinalIgnoreCase)))
            .Concat(csproj.GetFilesMarkedNone(f => f.EndsWith(".config", StringComparison.OrdinalIgnoreCase)))
            .Select(f => controller.ToAbsolutePath(f, csproj.FilePath))
            .ToList());
 }