Beispiel #1
0
        /// <summary>
        /// Updates the Version in the AppDef.xml / Also Updates the ServerCore Extension Object's Assembly Path if needed.
        /// </summary>
        /// <param name="logger">Logger</param>
        /// <param name="appdef">Deserialized AppDef</param>
        /// <param name="appdefpath">Path to AppDef</param>
        public static void UpdateAppDef(Logger.Logger logger, application appdef, string appdefpath)
        {
            using (logger.CaptionBlock("Updating AppDef Version"))
            {
                IncrementVersion(appdef, logger);

                // IDisposable StreamWriter, for saving the AppDef.xml
                using (StreamWriter sw = new StreamWriter(appdefpath))
                {
                    XmlSerializer serializer = new XmlSerializer(typeof(application));

                    serializer.Serialize(sw, appdef);
                }
            }
        }
Beispiel #2
0
        /// <summary>
        /// Updates the Version in the AppDef.xml / Also Updates the ServerCore Extension Object's Assembly Path if needed.
        /// </summary>
        /// <param name="logger">Logger</param>
        /// <param name="appdef">Deserialized AppDef</param>
        /// <param name="appdefpath">Path to AppDef</param>
        public static void UpdateAppDef(Logger.Logger logger, application appdef, string appdefpath)
        {
            using( logger.CaptionBlock("Updating AppDef Version") )
            {
                IncrementVersion(appdef, logger);

                // IDisposable StreamWriter, for saving the AppDef.xml
                using (StreamWriter sw = new StreamWriter(appdefpath))
                {
                    XmlSerializer serializer = new XmlSerializer(typeof(application));

                    serializer.Serialize(sw, appdef);
                }
            }
        }
Beispiel #3
0
        /// <summary>
        /// Console Application Entry Point
        /// </summary>
        /// <param name="args">Drag the Settings file onto the executable in order to use it as a parameter</param>
        private static void Main(string [] args)
        {
            // Initialize the logger.
            Logger = new Logger.Logger();

            // Create a Caption Block to print the settings
            using (Logger.CaptionBlock("Reading Settings"))
            {
                // populate the Settings object.
                Settings = new UXDevSettings(args, Logger);
            }

            // increment the appdef version.
            VersionHelper.UpdateAppDef(Logger, Settings.AppDef, Settings.AppDefPath);

            // Package the UX-App Directory.
            string packedApp = UXPack(Settings.DirectoryToZip, Settings.Outputname);

            // Install the application to the vault.
            InstallApp(packedApp, Settings);
        }