예제 #1
0
        public static void MDToolBuild(this ICakeContext context, FilePath projectOrSolutionFile, Action <MDToolSettings> settings = null)
        {
            var mds = new MDToolSettings();

            if (settings != null)
            {
                settings(mds);
            }

            var runner = new MDToolRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            runner.Build(projectOrSolutionFile, mds);
        }
예제 #2
0
        public static void MDToolArchive(this ICakeContext context, FilePath solutionFile, string projectName, Action <MDToolSettings> settings = null)
        {
            var mds = new MDToolSettings();

            if (settings != null)
            {
                settings(mds);
            }

            var runner = new MDToolRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            runner.Archive(solutionFile, projectName, mds);
        }