Beispiel #1
0
        public IEnumerable<string> CopyDependency(FileInfo file, DirectoryInfo destination)
        {
            IEnumerable<string> locationsToCopyTo = destination.Search(file.Name);

            foreach (var location in locationsToCopyTo)
            {
                CopyFile(file, location);
            }

            //Ensure we at least copy the dependency to the root folder
            CopyFile(file, Path.Combine(destination.FullName, Path.GetFileName(file.FullName)));

            return locationsToCopyTo;
        }
        private void LoadSolutionFiles(DirectoryInfo workingDirectory)
        {
            if (SolutionFiles.Count() > 0)
                return;

            Info("Dependency: Loading solution files ...");

            IEnumerable<string> collection = workingDirectory.Search("*.sln");
            SolutionFiles = new HashSet<string>(collection);

            InfoFormat("Dependency: Found {0} solution file(s)", SolutionFiles.Count());
        }