Skip to content

Commit

Permalink
136 refactor from ix to ax# (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
PTKu authored Mar 27, 2023
1 parent c6b654c commit 8e0451b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion cake/BuildContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using Cake.Common.Tools.DotNet;
using Cake.Common.Tools.DotNet.Build;
using Cake.Common.Tools.DotNet.MSBuild;
using Cake.Common.Tools.DotNet.Restore;
using Cake.Common.Tools.DotNet.Run;
using Cake.Common.Tools.DotNet.Test;
using Cake.Common.Tools.DotNetCore.MSBuild;
Expand All @@ -37,6 +38,8 @@ public class BuildContext : FrostingContext

public Cake.Common.Tools.DotNet.Build.DotNetBuildSettings DotNetBuildSettings { get; }

public DotNetRestoreSettings DotNetRestoreTemplatesSettings { get; }

public Cake.Common.Tools.DotNet.Test.DotNetTestSettings DotNetTestSettings { get; }

public DotNetRunSettings DotNetRunSettings { get; }
Expand All @@ -59,7 +62,9 @@ public BuildContext(ICakeContext context, BuildParameters buildParameters)
Verbosity = DotNetVerbosity.Quiet
}
};


DotNetRestoreTemplatesSettings = new DotNetRestoreSettings() { NoCache = true, IgnoreFailedSources = true };

DotNetTestSettings = new DotNetTestSettings()
{
Verbosity = buildParameters.Verbosity,
Expand Down
6 changes: 3 additions & 3 deletions cake/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ public override void Run(BuildContext context)
{
if (!context.BuildParameters.DoPublish)
{
context.Log.Warning($"Skipping template package push.");
context.Log.Warning($"Skipping template package build.");
return;
}

Expand Down Expand Up @@ -385,12 +385,12 @@ public override void Run(BuildContext context)
});
}


foreach (var template in context.GetTemplateProjects())
{
context.DotNetRestore(Path.Combine(context.ScrDir, template.solution), context.DotNetRestoreTemplatesSettings);
context.DotNetBuild(Path.Combine(context.ScrDir, template.solution), context.DotNetBuildSettings);
}


}
}

Expand Down

0 comments on commit 8e0451b

Please sign in to comment.