#178: Configure Cake.Frosting build system
This commit is contained in:
17
build/Tasks/Restore.cs
Normal file
17
build/Tasks/Restore.cs
Normal 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 });
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user