Exemple #1
0
 private static void RenameProject(string destPath, Options options)
 {
     var slnRoot = destPath + Path.DirectorySeparatorChar;
     File.Move(slnRoot + "NDriven.sln", slnRoot + options.SolutionName + ".sln");
     System.Console.WriteLine();
     System.Console.WriteLine(string.Format("Project {0} created", options.SolutionName));
 }
Exemple #2
0
 static void Main(string[] args)
 {
     var options = new Options();
     if (CommandLine.Parser.Default.ParseArguments(args, options))
     {
         var archive = FetchArchive(FetchTag());
         if (string.IsNullOrEmpty(options.Directory) || !Directory.Exists(options.Directory))
             options.Directory = Environment.CurrentDirectory;
         var zipPath = options.Directory + Path.DirectorySeparatorChar + "ndriven.zip";
         var destPath = options.Directory + Path.DirectorySeparatorChar + options.SolutionName;
         WriteArchive(archive, zipPath, destPath);
         RenameProject(destPath, options);
     }
 }