18 lines
461 B
C#
18 lines
461 B
C#
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 });
|
|
}
|
|
}
|
|
}
|