Beispiel #1
0
        public static void VscePackage(this ICakeContext context, VscePackageSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            var resolver = new VsceToolResolver(context.FileSystem, context.Environment);
            var packager = new VscePackager(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, resolver);
            packager.Run(settings);
        }
Beispiel #2
0
        public static void VscePublish(this ICakeContext context, VscePublishSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            var resolver  = new VsceToolResolver(context.FileSystem, context.Environment);
            var publisher = new VscePublisher(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, resolver);

            publisher.Run(settings);
        }