#178: Configure Cake.Frosting build system

This commit is contained in:
Anton Kasyanov
2021-02-01 23:55:36 +02:00
parent e4229dcefc
commit 779ff2cf7c
14 changed files with 995 additions and 20 deletions

17
build/Tasks/Restore.cs Normal file
View File

@@ -0,0 +1,17 @@
using Cake.Common.Diagnostics;
using Cake.Common.Tools.NuGet;
using Cake.Common.Tools.NuGet.Restore;
using Cake.Frosting;
namespace Build.Tasks
{
[Dependency(typeof(Documentation))]
public sealed class Restore : FrostingTask<Context>
{
public override void Run(Context context)
{
context.Information("Restore started...");
context.NuGetRestore(Configuration.SolutionName, new NuGetRestoreSettings { NoCache = true });
}
}
}