mirror of
https://github.com/spectreconsole/examples.git
synced 2025-10-24 15:19:20 +00:00
36 lines
915 B
C#
36 lines
915 B
C#
var target = Argument("target", "Default");
|
|
var configuration = Argument("configuration", "Release");
|
|
|
|
////////////////////////////////////////////////////////////////
|
|
// Tasks
|
|
|
|
Task("Clean")
|
|
.Does(context =>
|
|
{
|
|
context.CleanDirectory("./.artifacts");
|
|
});
|
|
|
|
Task("Build")
|
|
.IsDependentOn("Clean")
|
|
.Does(context =>
|
|
{
|
|
DotNetBuild("./examples/Examples.sln", new DotNetBuildSettings {
|
|
Configuration = configuration,
|
|
Verbosity = DotNetVerbosity.Minimal,
|
|
NoLogo = true,
|
|
NoIncremental = context.HasArgument("rebuild"),
|
|
MSBuildSettings = new DotNetMSBuildSettings()
|
|
.TreatAllWarningsAs(MSBuildTreatAllWarningsAs.Error)
|
|
});
|
|
});
|
|
|
|
////////////////////////////////////////////////////////////////
|
|
// Targets
|
|
|
|
Task("Default")
|
|
.IsDependentOn("Package");
|
|
|
|
////////////////////////////////////////////////////////////////
|
|
// Execution
|
|
|
|
RunTarget(target) |