private static List <String> CreatePackage() { List <String> l = new List <string>(); foreach (var path in Directory.EnumerateFiles(RootFolderPath, "*.csproj", SearchOption.AllDirectories).OrderBy(el => el)) { if (path.Contains("_Pcl_")) { continue; } if (path.Contains(".Test.")) { continue; } var package = NugetPackageInfo.Create(path); if (package == null) { continue; } if (package.PackageBuilder.Files.Count == 0) { continue; } var fileName = String.Format("C:\\GitHub\\higty\\HigLabo\\NugetPackage\\{0}.{1}.nupkg", package.Nuspec.Id, package.Nuspec.Version); if (File.Exists(fileName) == false) { l.Add(fileName); package.CreateNupkgFile(fileName); Console.WriteLine("Created: " + fileName); } System.Threading.Thread.Sleep(100); } return(l); }
private static void LoadDependencyPackages(List <NugetPackageInfo> packages, String projectFilePath) { var dependencyPackage = NugetPackageInfo.Create(projectFilePath); if (dependencyPackage == null) { return; } packages.Add(dependencyPackage); }