Exemple #1
0
 protected static void ValidateSolutionReadyForBuild(IProjectFinder projectFinder, string solutionFileName, Regex[] ignoredDependencyAssemblies, bool ignoreOnlyMatching)
 {
     foreach (var project in projectFinder.GetProjectsOfSLN(solutionFileName))
     {
         project.ValidateHintPaths(ignoredDependencyAssemblies, ignoreOnlyMatching);
         project.ValidateAssemblyReferencesAreAvailable();
     }
 }
Exemple #2
0
        public static void UpdateComponentsFromBuiltProjects(IProjectFinder projectFinder, string solutionFileName, Regex[] assemblyNamePatterns, bool ignoreOnlyMatching, bool ignoreMissing)
        {
            _logger.DebugFormat("Updating components: {0} (copying dependencies required for '{1}')...", Path.GetFileName(solutionFileName), solutionFileName);
            var assemblyReferences = projectFinder.GetProjectsOfSLN(solutionFileName)
                                     .SelectMany(x => x.AssemblyReferences)
                                     .Distinct();

            Builder.CopyAssemblyReferencesFromBuiltProjects(projectFinder, assemblyNamePatterns, ignoreOnlyMatching, assemblyReferences, ignoreMissing);
            _logger.InfoFormat("Updated components required by: {0} ('{1}')", Path.GetFileName(solutionFileName), solutionFileName);
        }
Exemple #3
0
 protected static void RunAllUnitTests(IProjectFinder projectFinder, string solutionFileName, bool ignoreFailedTests)
 {
     foreach (var project in projectFinder.GetProjectsOfSLN(solutionFileName))
     {
         if (project.AssemblyReferences.Any(x => x.AssemblyNameFromFullName().StartsWith("Microsoft.VisualStudio.QualityTools.UnitTestFramework")))
         {
             _logger.DebugFormat("\tRunning Tests: {0}", project.Name);
             MSTest(project, ignoreFailedTests);
         }
     }
 }
 protected static IEnumerable <Project> GetAllProjectsInSolutionsOfProject(IProjectFinder projectFinder, Project project)
 {
     return(projectFinder.GetProjectsOfSLN(projectFinder.GetSLNFileForProject(project)));
 }