Example #1
0
        // Generate a distribution unit
        public bool GenerateDistUnit()
        {
            // Create Distribution Unit
            Mfconsulting.Vsprj2make.RegistryHelper regH = new RegistryHelper();
            CreateZipHelper zipObj     = new CreateZipHelper();
            string          strSLNFile = applicationObject.Solution.FileName;
            string          strIgDirs;
            string          strIgEx;
            int             nLevel;

            // Get Regvalues
            strIgDirs = regH.IgnoredDirectories;
            strIgEx   = regH.IgnoredExtensions;
            nLevel    = regH.CompressionLevel;

            applicationObject.StatusBar.Clear();
            outputWindowPane.OutputString("--------------------------------------\nGenerating a distribution unit for ");
            outputWindowPane.OutputString(String.Format("Solution: {0}\n", strSLNFile));

            applicationObject.StatusBar.Text = "Creating Zip file...";
            outputWindowPane.OutputString("\tCreating Zip file...\n");

            outputWindowPane.OutputString(zipObj.CreateZipFile(
                                              strSLNFile,
                                              strIgDirs,
                                              strIgEx,
                                              nLevel
                                              )
                                          );

            applicationObject.StatusBar.Text = "Zip file created!";
            outputWindowPane.OutputString("\tZip file created!\n");

            return(true);
        }
Example #2
0
        // Generate a distribution unit
        public bool GenerateDistUnit()
        {
            // Create Distribution Unit
            Mfconsulting.Vsprj2make.RegistryHelper regH = new RegistryHelper();
            CreateZipHelper zipObj = new CreateZipHelper();
            string strSLNFile = _applicationObject.Solution.FileName;
            string strIgDirs;
            string strIgEx;
            int nLevel;

            // Get Regvalues
            strIgDirs = regH.IgnoredDirectories;
            strIgEx = regH.IgnoredExtensions;
            nLevel = regH.CompressionLevel;

            _applicationObject.StatusBar.Clear();
            outputWindowPane.OutputString("--------------------------------------\nGenerating a distribution unit for ");
            outputWindowPane.OutputString(String.Format("Solution: {0}\n", strSLNFile));

            _applicationObject.StatusBar.Text = "Creating Zip file...";
            outputWindowPane.OutputString("\tCreating Zip file...\n");

            outputWindowPane.OutputString(zipObj.CreateZipFile(
                strSLNFile,
                strIgDirs,
                strIgEx,
                nLevel
                )
                );

            _applicationObject.StatusBar.Text = "Zip file created!";
            outputWindowPane.OutputString("\tZip file created!\n");

            return true;
        }