mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-07-04 11:48:16 +08:00
Add solution for examples
This commit is contained in:

committed by
Phil Scott

parent
58eff30787
commit
6e2ca8449e
12
build.cake
12
build.cake
@ -15,8 +15,20 @@ Task("Build")
|
||||
});
|
||||
});
|
||||
|
||||
Task("Build-Examples")
|
||||
.Does(context =>
|
||||
{
|
||||
DotNetCoreBuild("./examples/Examples.sln", new DotNetCoreBuildSettings {
|
||||
Configuration = configuration,
|
||||
NoIncremental = context.HasArgument("rebuild"),
|
||||
MSBuildSettings = new DotNetCoreMSBuildSettings()
|
||||
.TreatAllWarningsAs(MSBuildTreatAllWarningsAs.Error)
|
||||
});
|
||||
});
|
||||
|
||||
Task("Test")
|
||||
.IsDependentOn("Build")
|
||||
.IsDependentOn("Build-Examples")
|
||||
.Does(context =>
|
||||
{
|
||||
DotNetCoreTest("./test/Spectre.Console.Tests/Spectre.Console.Tests.csproj", new DotNetCoreTestSettings {
|
||||
|
Reference in New Issue
Block a user