Exemplo n.º 1
0
        public static int Main(string[] args)
        {
            Messaging   messaging = new Messaging();
            CommandLine commandline;

            if (!CommandLine.TryParseArguments(args, messaging, out commandline))
            {
                return(1);
            }

            if (commandline.Help)
            {
                SimplifiedWixCompiler.ShowLogo();
                SimplifiedWixCompiler.ShowHelp();
                return(0);
            }

            if (!commandline.NoLogo)
            {
                SimplifiedWixCompiler.ShowLogo();
            }

            SimplifiedWixCompiler self = new SimplifiedWixCompiler();

            self.Architecture        = commandline.Architecture;
            self.Extensions          = commandline.Extensions.ToArray();
            self.Languages           = commandline.Languages.ToArray();
            self.Type                = commandline.Type;
            self.PreprocessorDefines = commandline.PreprocessorDefines.ToArray();
            self.SourcePaths         = commandline.Files.ToArray();
            self.SearchPaths         = commandline.SearchPaths.ToArray();
            self.OutputPath          = commandline.Output;

            return(self.Run(messaging) ? 0 : -1);
        }