Ejemplo n.º 1
0
        public static void DotNetCoreMSBuild(this ICakeContext context, string projectOrDirectory, DotNetCoreMSBuildSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            if (settings == null)
            {
                settings = new DotNetCoreMSBuildSettings();
            }

            var builder = new DotNetCoreMSBuildBuilder(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);
            builder.Build(projectOrDirectory, settings);
        }
Ejemplo n.º 2
0
        protected override void RunTool()
        {
            var tool = new DotNetCoreMSBuildBuilder(FileSystem, Environment, ProcessRunner, Tools);

            tool.Build(Project, Settings);
        }