Exemple #1
0
        static void Main(string[] args)
        {
            var execFunctions = new SPFunctions
            {
                { "deploy", options =>
                  {
                      Deploy.Demo(options.Context);
                      Deploy.ImportDemo(options.Context);
                  } }, { "demo", options =>
                         {
                             Deploy.ImportDemo(options.Context);
                         } }, { "retract", options =>
                                {
                                    Deploy.DemoRetractLite(options.Context);
                                } }
            };


            var forcePropmts = true;

            SharePoint.RunCSOM("--configPath='./configs/private.demo.json' --forcePrompts=" + forcePropmts, execFunctions);

            Console.WriteLine("Finished");
            Console.ReadKey();
        }