From d889c039a51d4bf990cf65c4b81c6d1a13336871 Mon Sep 17 00:00:00 2001 From: Pascal Berger Date: Mon, 8 Aug 2022 22:34:25 +0200 Subject: [PATCH] Update to Cake.Recipe 3.0 --- .appveyor.yml | 2 +- recipe.cake | 13 ++++++++----- tools/packages.config | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 8c54926..9a8e52c 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -11,7 +11,7 @@ install: - ps: nuget update -self build_script: - - ps: .\build.ps1 -Target CI + - ps: .\build.ps1 --target=CI # Tests test: off diff --git a/recipe.cake b/recipe.cake index 497553a..7f78d0a 100644 --- a/recipe.cake +++ b/recipe.cake @@ -1,4 +1,8 @@ -#load nuget:?package=Cake.Recipe&version=2.2.1 +#load nuget:?package=Cake.Recipe&version=3.0.0 + +//************************************************************************************************* +// Settings +//************************************************************************************************* Environment.SetVariableNames(); @@ -17,13 +21,12 @@ BuildParameters.PrintParameters(Context); ToolSettings.SetToolSettings( context: Context, - dupFinderExcludePattern: new string[] { BuildParameters.RootDirectoryPath + "/src/Cake.Issues.MsBuild.Tests/**/*.cs", BuildParameters.RootDirectoryPath + "/src/Cake.Issues.MsBuild*/**/*.AssemblyInfo.cs" }, testCoverageFilter: "+[*]* -[xunit.*]* -[Cake.Core]* -[Cake.Testing]* -[*.Tests]* -[Cake.Issues]* -[Cake.Issues.Testing]* -[Shouldly]* -[Microsoft.Build*]* -[StructuredLogger]* -[DiffEngine]* -[EmptyFiles]*", testCoverageExcludeByAttribute: "*.ExcludeFromCodeCoverage*", testCoverageExcludeByFile: "*/*Designer.cs;*/*.g.cs;*/*.g.i.cs"); -// Workaround until https://github.com/cake-contrib/Cake.Recipe/issues/862 has been fixed in Cake.Recipe -ToolSettings.SetToolPreprocessorDirectives( - reSharperTools: "#tool nuget:?package=JetBrains.ReSharper.CommandLineTools&version=2021.2.0"); +//************************************************************************************************* +// Execution +//************************************************************************************************* Build.RunDotNetCore(); diff --git a/tools/packages.config b/tools/packages.config index ef49ed4..08d91fc 100644 --- a/tools/packages.config +++ b/tools/packages.config @@ -1,4 +1,4 @@ - + \ No newline at end of file