From ef1be2e7b22718e2958d3f497b59d80630a9bf38 Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Thu, 6 Jul 2023 14:08:58 +0100 Subject: [PATCH] (build) FIx build running locally Make use of the official package for GitVersion. I don't remember why one from a MyGet feed was being used. Also, there was a build failure regarding passing of the InProcessClient for NuGet, so opted to remove this from the config file, since this is the default value. I suspect that the build will still fail on GitHub Actions, but taking it for a spin. --- cake.config | 1 - recipe.cake | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cake.config b/cake.config index 65324f5..a5fa61f 100644 --- a/cake.config +++ b/cake.config @@ -3,7 +3,6 @@ [Nuget] Source=https://api.nuget.org/v3/index.json -UseInProcessClient=true [Paths] Tools=./tools diff --git a/recipe.cake b/recipe.cake index f9f01a9..51e1af5 100644 --- a/recipe.cake +++ b/recipe.cake @@ -19,4 +19,6 @@ ToolSettings.SetToolSettings(context: Context, testCoverageExcludeByAttribute: "*.ExcludeFromCodeCoverage*", testCoverageExcludeByFile: "*/*Designer.cs;*/*.g.cs;*/*.g.i.cs"); +ToolSettings.SetToolPreprocessorDirectives(gitVersionGlobalTool: "#tool dotnet:?package=GitVersion.Tool&version=5.6.6"); + Build.RunDotNetCore();