var target = Argument("target", "Build");
var slnPath = "./src/some-project.sln";
var distDirectory = Directory("./dist");
Task("Build")
.Does(() =>
{
var settings = new DotNetCoreMSBuildSettings();
settings.FileLoggers.Add(new MSBuildFileLoggerSettings(){
LogFile = "./WarningReportes.txt",
SummaryOutputLevel = MSBuildLoggerOutputLevel.WarningsOnly
});
DotNetCoreMSBuild(slnPath, settings);
});
RunTarget(target);