Skip to content

Commit

Permalink
Attempted workaround for package version dependency issue by specifyi…
Browse files Browse the repository at this point in the history
…ng version on dotnet restore

see NuGet/Home#4337
  • Loading branch information
ryangribble committed Sep 3, 2017
1 parent 97d3e45 commit e3bc43a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build/Tasks/Restore.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
using Cake.Common.Tools.DotNetCore;
using Cake.Common.Tools.DotNetCore.Restore;
using Cake.Core;
using Cake.Frosting;

[Dependency(typeof(Clean))]
public sealed class Restore : FrostingTask<Context>
{
public override void Run(Context context)
{
context.DotNetCoreRestore(".");
context.DotNetCoreRestore(".", new DotNetCoreRestoreSettings
{
ArgumentCustomization = args => args
.Append("/p:Version={0}", context.Version.GetSemanticVersion())
});
}
}

0 comments on commit e3bc43a

Please sign in to comment.