public void SetUpProjectAdapterAndBinaryDependencies()
 {
     _console = new ConsoleMock();
     _solutionProjectLoader = new CachingSolutionLoader(Paths.AdapterTestsSolutionFile, new Dictionary<string, string>(), _console.Object);
     var projectAdapters = _solutionProjectLoader.GetProjects();
     _projectWithDependenciesAdapter = projectAdapters.Single(p => p.ProjectName.Equals(ProjectWithDependenciesName, StringComparison.OrdinalIgnoreCase));
     _projectBinaryReferenceAdapters = _projectWithDependenciesAdapter.GetBinaryReferences();
 }
        private void NugetifySolution(FileInfo solutionFile)
        {
            Console.WriteLine("Loading projects from solution {0}", solutionFile.Name);

            var existingSolutionPackagesRepo = new SharedPackageRepository(Path.Combine(solutionFile.Directory.FullName, "packages"));
            using (var solutionAdapter = new CachingSolutionLoader(solutionFile, GetMsBuildProperties(solutionFile), Console))
            {
                var projectAdapters = solutionAdapter.GetProjects();

                Console.WriteLine("Processing {0} projects...", projectAdapters.Count);
                foreach (var projectAdapter in projectAdapters)
                {
                    Console.WriteLine();
                    Console.WriteLine("Processing project: {0}", projectAdapter.ProjectName);

                    NugetifyProject(projectAdapter, solutionFile.Directory, existingSolutionPackagesRepo);

                    Console.WriteLine("Project completed!");
                }
            }
            Console.WriteLine("Complete!");
        }
 public IEnumerable<IReference> GetReferencesForProjectWithDependencies(IDictionary<string, string> globalMsBuildProperties)
 {
     using (var loader = new CachingSolutionLoader(Paths.AdapterTestsSolutionFile, globalMsBuildProperties, _console.Object))
     {
         var projectAdapters = loader.GetProjects();
         var projectWithDependenciesAdapter = projectAdapters.Single(p => p.ProjectName.Equals(ProjectWithDependenciesName, StringComparison.OrdinalIgnoreCase));
         return projectWithDependenciesAdapter.GetBinaryReferences();
     }
 }