示例#1
0
        public static void MSBuild(this ICakeContext context, FilePath solution, MSBuildSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }

            var runner = new MSBuildRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Globber);

            runner.Run(solution, settings);
        }
示例#2
0
        public static void MSBuild(this ICakeContext context, FilePath solution, Action <MSBuildSettings> configurator)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            if (configurator == null)
            {
                throw new ArgumentNullException("configurator");
            }

            var settings = new MSBuildSettings(solution);

            configurator(settings);

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

            runner.Run(settings);
        }