Example #1
0
 public void FindAndReplace_should_replace_common_assemblyinfo()
 {
     var solution = new VsSolution();
     var fs = new FileSystem();
     Task task = fs.FindAndReplace(@"C:\Projects\TNT\RouteMaker\Main-v1.0\Source", "AssemblyInfo.cs", System.IO.SearchOption.AllDirectories, solution.RemoveCommonAssemblyInfo);
     
     task.Wait();
 }
Example #2
0
        public static void Main(string[] args)
        {
            var generator = new SqlScriptGenerator();
            
            string server = ConfigurationManager.AppSettings["Server"];
            string database = ConfigurationManager.AppSettings["Database"];
            string generatedScriptsPath = ConfigurationManager.AppSettings["GeneratedScriptsPath"];

            SqlScriptingInput input = generator.GetSqlScriptingInput(server, database);
            input.RootFolder = generatedScriptsPath;

            SqlScriptingResult result = generator.GenerateSqlScripts(input);
            var fs = new FileSystem();
            Task deleteDirectoryTask = fs.DeleteDirectoryAsync(input.RootFolder);
            deleteDirectoryTask.Wait();

            Task generateFilesTask = fs.GenerateFilesAsync(result.Scripts);
            generateFilesTask.Wait();
        }