From 84b1ae560d4c7c60bcaab5487a24e8572e958949 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Fri, 2 Apr 2021 04:15:43 +0000 Subject: [PATCH 01/28] Bump Microsoft.NET.Test.Sdk from 16.9.1 to 16.9.4 in /src Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.9.1 to 16.9.4. - [Release notes](https://github.com/microsoft/vstest/releases) - [Commits](https://github.com/microsoft/vstest/compare/v16.9.1...v16.9.4) Signed-off-by: dependabot-preview[bot] --- src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj index e9e6883..4af1675 100644 --- a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj +++ b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj @@ -34,7 +34,7 @@ - + From 8c89f672a6e7577811930fb9c45d8e05ccfbec4c Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Thu, 29 Apr 2021 15:06:13 +0000 Subject: [PATCH 02/28] Upgrade to GitHub-native Dependabot --- .github/dependabot.yml | 54 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..257ba7c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,54 @@ +version: 2 +updates: +- package-ecosystem: nuget + directory: "/src" + schedule: + interval: daily + time: "04:00" + open-pull-requests-limit: 10 + ignore: + - dependency-name: Cake.Core + versions: + - ">= 0.34.a, < 0.35" + - dependency-name: Cake.Core + versions: + - ">= 0.35.a, < 0.36" + - dependency-name: Cake.Core + versions: + - ">= 0.36.a, < 0.37" + - dependency-name: Cake.Core + versions: + - ">= 0.37.a, < 0.38" + - dependency-name: Cake.Core + versions: + - ">= 0.38.a, < 0.39" + - dependency-name: Cake.Core + versions: + - "> 1.0.0, < 2" + - dependency-name: Cake.Issues + versions: + - "> 0.9.0, < 0.10" + - dependency-name: Cake.Issues.Testing + versions: + - "> 0.9.0, < 0.10" + - dependency-name: Cake.Testing + versions: + - ">= 0.34.a, < 0.35" + - dependency-name: Cake.Testing + versions: + - ">= 0.35.a, < 0.36" + - dependency-name: Cake.Testing + versions: + - ">= 0.36.a, < 0.37" + - dependency-name: Cake.Testing + versions: + - ">= 0.37.a, < 0.38" + - dependency-name: Cake.Testing + versions: + - ">= 0.38.a, < 0.39" + - dependency-name: Cake.Testing + versions: + - "> 1.0.0, < 2" + - dependency-name: Cake.Testing + versions: + - 1.0.0 From dfc39c0172434ff50d6e084f6207e72f88794aa1 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Tue, 25 May 2021 20:44:24 +0000 Subject: [PATCH 03/28] Bump Microsoft.NET.Test.Sdk from 16.9.4 to 16.10.0 in /src Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.9.4 to 16.10.0. - [Release notes](https://github.com/microsoft/vstest/releases) - [Commits](https://github.com/microsoft/vstest/commits) Signed-off-by: dependabot-preview[bot] --- src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj index 7f66e17..96b0198 100644 --- a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj +++ b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj @@ -34,7 +34,7 @@ - + From ab50d35d8d98995dd07ae0fb91dd572e12f2c93a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Aug 2021 04:29:17 +0000 Subject: [PATCH 04/28] Bump Microsoft.NET.Test.Sdk from 16.10.0 to 16.11.0 in /src Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.10.0 to 16.11.0. - [Release notes](https://github.com/microsoft/vstest/releases) - [Commits](https://github.com/microsoft/vstest/compare/v16.10.0...v16.11.0) --- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj index 96b0198..0a62d80 100644 --- a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj +++ b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj @@ -34,7 +34,7 @@ - + From fa03df68f75ae905a648446ce6fc797ba9912035 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 27 Oct 2021 04:22:55 +0000 Subject: [PATCH 05/28] Bump Microsoft.NET.Test.Sdk from 16.11.0 to 17.0.0 in /src Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.11.0 to 17.0.0. - [Release notes](https://github.com/microsoft/vstest/releases) - [Commits](https://github.com/microsoft/vstest/compare/v16.11.0...v17.0.0) --- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj index 0a62d80..ed831b5 100644 --- a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj +++ b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj @@ -34,7 +34,7 @@ - + From 05fb51000ff75014b353db8d177fdf72c29f4651 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 9 Nov 2021 04:17:21 +0000 Subject: [PATCH 06/28] Bump Microsoft.CodeAnalysis.NetAnalyzers from 5.0.3 to 6.0.0 in /src Bumps [Microsoft.CodeAnalysis.NetAnalyzers](https://github.com/dotnet/roslyn-analyzers) from 5.0.3 to 6.0.0. - [Release notes](https://github.com/dotnet/roslyn-analyzers/releases) - [Changelog](https://github.com/dotnet/roslyn-analyzers/blob/main/PostReleaseActivities.md) - [Commits](https://github.com/dotnet/roslyn-analyzers/commits) --- updated-dependencies: - dependency-name: Microsoft.CodeAnalysis.NetAnalyzers dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj b/src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj index 9b830c4..a1ee494 100644 --- a/src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj +++ b/src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj @@ -27,7 +27,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive From c602be0e382da3b9fea8462afb15141ea13160b2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 17 Feb 2022 13:24:23 +0100 Subject: [PATCH 07/28] Bump Microsoft.NET.Test.Sdk from 17.0.0 to 17.1.0 in /src (#168) Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.0.0 to 17.1.0. - [Release notes](https://github.com/microsoft/vstest/releases) - [Commits](https://github.com/microsoft/vstest/compare/v17.0.0...v17.1.0) --- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj index ed831b5..36d4fe7 100644 --- a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj +++ b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj @@ -34,7 +34,7 @@ - + From 087b849dc492eca4dcac31c52fc39000a66e719e Mon Sep 17 00:00:00 2001 From: eoehen <49316770+eoehen@users.noreply.github.com> Date: Wed, 3 Aug 2022 20:22:14 +0200 Subject: [PATCH 08/28] Build using Visual Studio 2022 (#178) * Use windows-2022 image * Upgrade solution file to vs 2022 --- azure-pipelines.yml | 4 ++-- src/Cake.Issues.DocFx.sln | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d7198be..ae36be1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -12,7 +12,7 @@ pr: jobs: - job: Windows pool: - vmImage: 'vs2017-win2016' + vmImage: 'windows-2022' steps: - powershell: ./build.ps1 - displayName: 'Cake Build' \ No newline at end of file + displayName: 'Cake Build' diff --git a/src/Cake.Issues.DocFx.sln b/src/Cake.Issues.DocFx.sln index 5b736e9..620d53d 100644 --- a/src/Cake.Issues.DocFx.sln +++ b/src/Cake.Issues.DocFx.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.26730.8 +# Visual Studio Version 17 +VisualStudioVersion = 17.2.32526.322 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cake.Issues.DocFx", "Cake.Issues.DocFx\Cake.Issues.DocFx.csproj", "{95DCB140-6E3A-4F24-B0AD-2254CA946302}" EndProject From 65a744222341a72b94b91f766cc8de5d109c601f Mon Sep 17 00:00:00 2001 From: eoehen <49316770+eoehen@users.noreply.github.com> Date: Wed, 3 Aug 2022 20:27:01 +0200 Subject: [PATCH 09/28] Build using Cake .NET tool (#179) --- .config/dotnet-tools.json | 12 ++ build.ps1 | 242 ++------------------------------------ build.sh | 108 ++--------------- tools/packages.config | 4 - 4 files changed, 31 insertions(+), 335 deletions(-) create mode 100644 .config/dotnet-tools.json delete mode 100644 tools/packages.config diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json new file mode 100644 index 0000000..727dfd7 --- /dev/null +++ b/.config/dotnet-tools.json @@ -0,0 +1,12 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "cake.tool": { + "version": "0.38.5", + "commands": [ + "dotnet-cake" + ] + } + } +} \ No newline at end of file diff --git a/build.ps1 b/build.ps1 index faee428..0940a31 100644 --- a/build.ps1 +++ b/build.ps1 @@ -1,235 +1,15 @@ -########################################################################## -# This is the Cake bootstrapper script for PowerShell. -# This file was downloaded from https://github.com/cake-build/resources -# Feel free to change this file to fit your needs. -########################################################################## +$ErrorActionPreference = 'Stop' -<# +$SCRIPT_NAME = "recipe.cake" -.SYNOPSIS -This is a Powershell script to bootstrap a Cake build. +Write-Host "Restoring .NET Core tools" +dotnet tool restore +if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } -.DESCRIPTION -This Powershell script will download NuGet if missing, restore NuGet tools (including Cake) -and execute your Cake build script with the parameters you provide. +Write-Host "Bootstrapping Cake" +dotnet cake $SCRIPT_NAME --bootstrap +if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } -.PARAMETER Script -The build script to execute. -.PARAMETER Target -The build script target to run. -.PARAMETER Configuration -The build configuration to use. -.PARAMETER Verbosity -Specifies the amount of information to be displayed. -.PARAMETER ShowDescription -Shows description about tasks. -.PARAMETER DryRun -Performs a dry run. -.PARAMETER Experimental -Uses the nightly builds of the Roslyn script engine. -.PARAMETER Mono -Uses the Mono Compiler rather than the Roslyn script engine. -.PARAMETER SkipToolPackageRestore -Skips restoring of packages. -.PARAMETER ScriptArgs -Remaining arguments are added here. - -.LINK -https://cakebuild.net - -#> - -[CmdletBinding()] -Param( - [string]$Script = "recipe.cake", - [string]$Target = "Default", - [ValidateSet("Release", "Debug")] - [string]$Configuration = "Release", - [ValidateSet("Quiet", "Minimal", "Normal", "Verbose", "Diagnostic")] - [string]$Verbosity = "Verbose", - [switch]$ShowDescription, - [Alias("WhatIf", "Noop")] - [switch]$DryRun, - [switch]$Experimental, - [switch]$Mono, - [switch]$SkipToolPackageRestore, - [Parameter(Position=0,Mandatory=$false,ValueFromRemainingArguments=$true)] - [string[]]$ScriptArgs -) - -[Reflection.Assembly]::LoadWithPartialName("System.Security") | Out-Null -function MD5HashFile([string] $filePath) -{ - if ([string]::IsNullOrEmpty($filePath) -or !(Test-Path $filePath -PathType Leaf)) - { - return $null - } - - [System.IO.Stream] $file = $null; - [System.Security.Cryptography.MD5] $md5 = $null; - try - { - $md5 = [System.Security.Cryptography.MD5]::Create() - $file = [System.IO.File]::OpenRead($filePath) - return [System.BitConverter]::ToString($md5.ComputeHash($file)) - } - finally - { - if ($file -ne $null) - { - $file.Dispose() - } - } -} - -function GetProxyEnabledWebClient -{ - $wc = New-Object System.Net.WebClient - $proxy = [System.Net.WebRequest]::GetSystemWebProxy() - $proxy.Credentials = [System.Net.CredentialCache]::DefaultCredentials - $wc.Proxy = $proxy - return $wc -} - -Write-Host "Preparing to run build script..." - -if(!$PSScriptRoot){ - $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent -} - -$TOOLS_DIR = Join-Path $PSScriptRoot "tools" -$ADDINS_DIR = Join-Path $TOOLS_DIR "Addins" -$MODULES_DIR = Join-Path $TOOLS_DIR "Modules" -$NUGET_EXE = Join-Path $TOOLS_DIR "nuget.exe" -$CAKE_EXE = Join-Path $TOOLS_DIR "Cake/Cake.exe" -$NUGET_URL = "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -$PACKAGES_CONFIG = Join-Path $TOOLS_DIR "packages.config" -$PACKAGES_CONFIG_MD5 = Join-Path $TOOLS_DIR "packages.config.md5sum" -$ADDINS_PACKAGES_CONFIG = Join-Path $ADDINS_DIR "packages.config" -$MODULES_PACKAGES_CONFIG = Join-Path $MODULES_DIR "packages.config" - -# Make sure tools folder exists -if ((Test-Path $PSScriptRoot) -and !(Test-Path $TOOLS_DIR)) { - Write-Verbose -Message "Creating tools directory..." - New-Item -Path $TOOLS_DIR -Type directory | out-null -} - -# Make sure that packages.config exist. -if (!(Test-Path $PACKAGES_CONFIG)) { - Write-Verbose -Message "Downloading packages.config..." - try { - $wc = GetProxyEnabledWebClient - $wc.DownloadFile("https://cakebuild.net/download/bootstrapper/packages", $PACKAGES_CONFIG) } catch { - Throw "Could not download packages.config." - } -} - -# Try find NuGet.exe in path if not exists -if (!(Test-Path $NUGET_EXE)) { - Write-Verbose -Message "Trying to find nuget.exe in PATH..." - $existingPaths = $Env:Path -Split ';' | Where-Object { (![string]::IsNullOrEmpty($_)) -and (Test-Path $_ -PathType Container) } - $NUGET_EXE_IN_PATH = Get-ChildItem -Path $existingPaths -Filter "nuget.exe" | Select -First 1 - if ($NUGET_EXE_IN_PATH -ne $null -and (Test-Path $NUGET_EXE_IN_PATH.FullName)) { - Write-Verbose -Message "Found in PATH at $($NUGET_EXE_IN_PATH.FullName)." - $NUGET_EXE = $NUGET_EXE_IN_PATH.FullName - } -} - -# Try download NuGet.exe if not exists -if (!(Test-Path $NUGET_EXE)) { - Write-Verbose -Message "Downloading NuGet.exe..." - try { - $wc = GetProxyEnabledWebClient - $wc.DownloadFile($NUGET_URL, $NUGET_EXE) - } catch { - Throw "Could not download NuGet.exe." - } -} - -# Save nuget.exe path to environment to be available to child processed -$ENV:NUGET_EXE = $NUGET_EXE - -# Restore tools from NuGet? -if(-Not $SkipToolPackageRestore.IsPresent) { - Push-Location - Set-Location $TOOLS_DIR - - # Check for changes in packages.config and remove installed tools if true. - [string] $md5Hash = MD5HashFile($PACKAGES_CONFIG) - if((!(Test-Path $PACKAGES_CONFIG_MD5)) -Or - ($md5Hash -ne (Get-Content $PACKAGES_CONFIG_MD5 ))) { - Write-Verbose -Message "Missing or changed package.config hash..." - Remove-Item * -Recurse -Exclude packages.config,nuget.exe - } - - Write-Verbose -Message "Restoring tools from NuGet..." - $NuGetOutput = Invoke-Expression "&`"$NUGET_EXE`" install -ExcludeVersion -OutputDirectory `"$TOOLS_DIR`"" - - if ($LASTEXITCODE -ne 0) { - Throw "An error occurred while restoring NuGet tools." - } - else - { - $md5Hash | Out-File $PACKAGES_CONFIG_MD5 -Encoding "ASCII" - } - Write-Verbose -Message ($NuGetOutput | out-string) - - Pop-Location -} - -# Restore addins from NuGet -if (Test-Path $ADDINS_PACKAGES_CONFIG) { - Push-Location - Set-Location $ADDINS_DIR - - Write-Verbose -Message "Restoring addins from NuGet..." - $NuGetOutput = Invoke-Expression "&`"$NUGET_EXE`" install -ExcludeVersion -OutputDirectory `"$ADDINS_DIR`"" - - if ($LASTEXITCODE -ne 0) { - Throw "An error occurred while restoring NuGet addins." - } - - Write-Verbose -Message ($NuGetOutput | out-string) - - Pop-Location -} - -# Restore modules from NuGet -if (Test-Path $MODULES_PACKAGES_CONFIG) { - Push-Location - Set-Location $MODULES_DIR - - Write-Verbose -Message "Restoring modules from NuGet..." - $NuGetOutput = Invoke-Expression "&`"$NUGET_EXE`" install -ExcludeVersion -OutputDirectory `"$MODULES_DIR`"" - - if ($LASTEXITCODE -ne 0) { - Throw "An error occurred while restoring NuGet modules." - } - - Write-Verbose -Message ($NuGetOutput | out-string) - - Pop-Location -} - -# Make sure that Cake has been installed. -if (!(Test-Path $CAKE_EXE)) { - Throw "Could not find Cake.exe at $CAKE_EXE" -} - - - -# Build Cake arguments -$cakeArguments = @("$Script"); -if ($Target) { $cakeArguments += "-target=$Target" } -if ($Configuration) { $cakeArguments += "-configuration=$Configuration" } -if ($Verbosity) { $cakeArguments += "-verbosity=$Verbosity" } -if ($ShowDescription) { $cakeArguments += "-showdescription" } -if ($DryRun) { $cakeArguments += "-dryrun" } -if ($Experimental) { $cakeArguments += "-experimental" } -if ($Mono) { $cakeArguments += "-mono" } -$cakeArguments += $ScriptArgs - -# Start Cake -Write-Host "Running build script..." -&$CAKE_EXE $cakeArguments -exit $LASTEXITCODE \ No newline at end of file +Write-Host "Running Build" +dotnet cake $SCRIPT_NAME @args +if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } \ No newline at end of file diff --git a/build.sh b/build.sh index 4b690aa..ba5d0c9 100755 --- a/build.sh +++ b/build.sh @@ -1,103 +1,11 @@ -#!/usr/bin/env bash -########################################################################## -# This is the Cake bootstrapper script for Linux and OS X. -# This file was downloaded from https://github.com/cake-build/resources -# Feel free to change this file to fit your needs. -########################################################################## +#!/bin/bash +SCRIPT_NAME="recipe.cake" -# Define directories. -SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) -TOOLS_DIR=$SCRIPT_DIR/tools -NUGET_EXE=$TOOLS_DIR/nuget.exe -NUGET_URL=https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -CAKE_VERSION=0.32.1 -CAKE_EXE=$TOOLS_DIR/Cake.$CAKE_VERSION/Cake.exe +echo "Restoring .NET Core tools" +dotnet tool restore -# Temporarily skip verification of addins. -export CAKE_SETTINGS_SKIPVERIFICATION='true' +echo "Bootstrapping Cake" +dotnet cake $SCRIPT_NAME --bootstrap -# Define default arguments. -SCRIPT="recipe.cake" -TARGET="Default" -CONFIGURATION="Release" -VERBOSITY="verbose" -DRYRUN= -SCRIPT_ARGUMENTS=() - -# Parse arguments. -for i in "$@"; do - case $1 in - -t|--target) TARGET="$2"; shift ;; - -c|--configuration) CONFIGURATION="$2"; shift ;; - -v|--verbosity) VERBOSITY="$2"; shift ;; - -d|--dryrun) DRYRUN="-dryrun" ;; - --) shift; SCRIPT_ARGUMENTS+=("$@"); break ;; - *) SCRIPT_ARGUMENTS+=("$1") ;; - esac - shift -done - -# Make sure the tools folder exist. -if [ ! -d "$TOOLS_DIR" ]; then - mkdir "$TOOLS_DIR" -fi - -# Print Mono version. -echo "Mono version:" -mono --version -echo "" - -########################################################################### -# INSTALL .NET CORE CLI -########################################################################### - -echo "Installing .NET CLI..." -if [ ! -d "$SCRIPT_DIR/.dotnet" ]; then - mkdir "$SCRIPT_DIR/.dotnet" -fi -curl -Lsfo "$SCRIPT_DIR/.dotnet/dotnet-install.sh" https://dot.net/v1/dotnet-install.sh -sudo bash "$SCRIPT_DIR/.dotnet/dotnet-install.sh" --version 2.1.400 --install-dir .dotnet --no-path -export PATH="$SCRIPT_DIR/.dotnet":$PATH -export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 -export DOTNET_CLI_TELEMETRY_OPTOUT=1 -export DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER=0 -"$SCRIPT_DIR/.dotnet/dotnet" --info - -########################################################################### -# INSTALL NUGET -########################################################################### - -# Download NuGet if it does not exist. -if [ ! -f "$NUGET_EXE" ]; then - echo "Downloading NuGet..." - curl -Lsfo "$NUGET_EXE" $NUGET_URL - if [ $? -ne 0 ]; then - echo "An error occurred while downloading nuget.exe." - exit 1 - fi -fi - -########################################################################### -# INSTALL CAKE -########################################################################### - -if [ ! -f "$CAKE_EXE" ]; then - mono "$NUGET_EXE" install Cake -Version $CAKE_VERSION -OutputDirectory "$TOOLS_DIR" - if [ $? -ne 0 ]; then - echo "An error occurred while installing Cake." - exit 1 - fi -fi - -# Make sure that Cake has been installed. -if [ ! -f "$CAKE_EXE" ]; then - echo "Could not find Cake.exe at '$CAKE_EXE'." - exit 1 -fi - -########################################################################### -# RUN BUILD SCRIPT -########################################################################### - -# Start Cake -exec mono "$CAKE_EXE" $SCRIPT --verbosity=$VERBOSITY --configuration=$CONFIGURATION --target=$TARGET $DRYRUN "${SCRIPT_ARGUMENTS[@]}" +echo "Running Build" +dotnet cake $SCRIPT_NAME "$@" \ No newline at end of file diff --git a/tools/packages.config b/tools/packages.config deleted file mode 100644 index f27ab48..0000000 --- a/tools/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - From cdb9dcb1f8631396f34374b14f6097a65658a0d9 Mon Sep 17 00:00:00 2001 From: eoehen <49316770+eoehen@users.noreply.github.com> Date: Sat, 6 Aug 2022 10:27:09 +0200 Subject: [PATCH 10/28] Update to Cake.Recipe 3.0 (#180) * Update to Cake.Recipe 3.0 * Rename files AssemblyInfo to ProjectInfo --- .appveyor.yml | 2 +- .config/dotnet-tools.json | 2 +- recipe.cake | 19 ++++++++++++------- .../{AssemblyInfo.cs => ProjectInfo.cs} | 0 .../{AssemblyInfo.cs => ProjectInfo.cs} | 0 5 files changed, 14 insertions(+), 9 deletions(-) rename src/Cake.Issues.DocFx.Tests/Properties/{AssemblyInfo.cs => ProjectInfo.cs} (100%) rename src/Cake.Issues.DocFx/Properties/{AssemblyInfo.cs => ProjectInfo.cs} (100%) diff --git a/.appveyor.yml b/.appveyor.yml index 877eb1c..c1f4f08 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -11,7 +11,7 @@ install: - ps: nuget update -self build_script: - - ps: .\build.ps1 -Target AppVeyor + - ps: .\build.ps1 --target=CI # Tests test: off diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 727dfd7..4903ba5 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,7 +3,7 @@ "isRoot": true, "tools": { "cake.tool": { - "version": "0.38.5", + "version": "1.3.0", "commands": [ "dotnet-cake" ] diff --git a/recipe.cake b/recipe.cake index badffe0..24fbf99 100644 --- a/recipe.cake +++ b/recipe.cake @@ -1,4 +1,8 @@ -#load nuget:?package=Cake.Recipe&version=1.0.0 +#load nuget:https://pkgs.dev.azure.com/cake-contrib/Home/_packaging/addins/nuget/v3/index.json?package=Cake.Recipe&version=3.0.0-beta0001-0007&prerelease + +//************************************************************************************************* +// Settings +//************************************************************************************************* Environment.SetVariableNames(); @@ -10,18 +14,19 @@ BuildParameters.SetParameters( repositoryOwner: "cake-contrib", repositoryName: "Cake.Issues.DocFx", appVeyorAccountName: "cakecontrib", - shouldGenerateDocumentation: false, - shouldPublishMyGet: false, - shouldRunCodecov: false, - shouldRunGitVersion: true); + shouldRunCoveralls: false, // Disabled because it's currently failing + shouldGenerateDocumentation: false); BuildParameters.PrintParameters(Context); ToolSettings.SetToolSettings( context: Context, - dupFinderExcludePattern: new string[] { BuildParameters.RootDirectoryPath + "/src/Cake.Issues.DocFx.Tests/*.cs", BuildParameters.RootDirectoryPath + "/src/Cake.Issues.DocFx*/**/*.AssemblyInfo.cs" }, testCoverageFilter: "+[*]* -[xunit.*]* -[Cake.Core]* -[Cake.Testing]* -[*.Tests]* -[Cake.Issues]* -[Cake.Issues.Testing]* -[Shouldly]* -[DiffEngine]* -[EmptyFiles]*", testCoverageExcludeByAttribute: "*.ExcludeFromCodeCoverage*", testCoverageExcludeByFile: "*/*Designer.cs;*/*.g.cs;*/*.g.i.cs"); -Build.RunDotNetCore(); +//************************************************************************************************* +// Execution +//************************************************************************************************* + +Build.RunDotNetCore(); \ No newline at end of file diff --git a/src/Cake.Issues.DocFx.Tests/Properties/AssemblyInfo.cs b/src/Cake.Issues.DocFx.Tests/Properties/ProjectInfo.cs similarity index 100% rename from src/Cake.Issues.DocFx.Tests/Properties/AssemblyInfo.cs rename to src/Cake.Issues.DocFx.Tests/Properties/ProjectInfo.cs diff --git a/src/Cake.Issues.DocFx/Properties/AssemblyInfo.cs b/src/Cake.Issues.DocFx/Properties/ProjectInfo.cs similarity index 100% rename from src/Cake.Issues.DocFx/Properties/AssemblyInfo.cs rename to src/Cake.Issues.DocFx/Properties/ProjectInfo.cs From 091c02754cd66ae504374f38f338a6b03850f766 Mon Sep 17 00:00:00 2001 From: eoehen <49316770+eoehen@users.noreply.github.com> Date: Sat, 6 Aug 2022 10:41:12 +0200 Subject: [PATCH 11/28] Multi-Target .NET Core 3.1, 5 & 6 instead of .NET Standard 2.0 (#181) --- nuspec/nuget/Cake.Issues.DocFx.nuspec | 15 +++++++++------ .../Cake.Issues.DocFx.Tests.csproj | 2 +- src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj | 2 +- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/nuspec/nuget/Cake.Issues.DocFx.nuspec b/nuspec/nuget/Cake.Issues.DocFx.nuspec index 0dca536..295e9c5 100644 --- a/nuspec/nuget/Cake.Issues.DocFx.nuspec +++ b/nuspec/nuget/Cake.Issues.DocFx.nuspec @@ -28,11 +28,14 @@ See the Project Site for an overview of the whole ecosystem of addins for workin - - - - - - + + + + + + + + + diff --git a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj index 36d4fe7..611067c 100644 --- a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj +++ b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj @@ -2,7 +2,7 @@ Library - netcoreapp2.1;net461 + net5.0 false Tests for the Cake.Issues.DocFx addin BBT Software AG diff --git a/src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj b/src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj index a1ee494..cc1c953 100644 --- a/src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj +++ b/src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj @@ -2,7 +2,7 @@ Library - netstandard2.0;net461 + netcoreapp3.1;net5.0;net6.0 DocFx support for the Cake.Issues Addin for Cake Build Automation System BBT Software AG BBT Software AG From fb400bf87c3dbea37757389c3aa76365ed64e7ec Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 6 Aug 2022 10:47:32 +0200 Subject: [PATCH 12/28] Bump xunit.runner.visualstudio from 2.4.3 to 2.4.5 in /src (#175) Bumps [xunit.runner.visualstudio](https://github.com/xunit/visualstudio.xunit) from 2.4.3 to 2.4.5. - [Release notes](https://github.com/xunit/visualstudio.xunit/releases) - [Commits](https://github.com/xunit/visualstudio.xunit/commits) --- updated-dependencies: - dependency-name: xunit.runner.visualstudio dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj index 611067c..3d2cd36 100644 --- a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj +++ b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj @@ -48,7 +48,7 @@ 2.4.1 - 2.4.3 + 2.4.5 runtime; build; native; contentfiles; analyzers all From 07895c3d2479e27dade9f367c8541ed3347a3a72 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 6 Aug 2022 10:56:32 +0200 Subject: [PATCH 13/28] Bump xunit from 2.4.1 to 2.4.2 in /src (#177) Bumps [xunit](https://github.com/xunit/xunit) from 2.4.1 to 2.4.2. - [Release notes](https://github.com/xunit/xunit/releases) - [Commits](https://github.com/xunit/xunit/compare/2.4.1...2.4.2) --- updated-dependencies: - dependency-name: xunit dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: eoehen <49316770+eoehen@users.noreply.github.com> --- src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj index 3d2cd36..541c246 100644 --- a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj +++ b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj @@ -45,7 +45,7 @@ all - 2.4.1 + 2.4.2 2.4.5 From 18e858e38cd5b73cd1826a5b8d82a428f14ce9d1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 6 Aug 2022 11:06:21 +0200 Subject: [PATCH 14/28] Bump Microsoft.NET.Test.Sdk from 17.1.0 to 17.2.0 in /src (#176) Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.1.0 to 17.2.0. - [Release notes](https://github.com/microsoft/vstest/releases) - [Commits](https://github.com/microsoft/vstest/compare/v17.1.0...v17.2.0) --- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj index 541c246..ce73248 100644 --- a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj +++ b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj @@ -34,7 +34,7 @@ - + From 68daee81bb18d333d577f55f9ed4d066d80f7356 Mon Sep 17 00:00:00 2001 From: eoehen <49316770+eoehen@users.noreply.github.com> Date: Sat, 6 Aug 2022 12:12:43 +0200 Subject: [PATCH 15/28] Upgrade appveyor build image to Visual Studio 2022 (#182) --- .appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.appveyor.yml b/.appveyor.yml index c1f4f08..9a8e52c 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,7 +1,7 @@ #---------------------------------# # Build Image # #---------------------------------# -image: Visual Studio 2019 +image: Visual Studio 2022 #---------------------------------# # Build Script # From ceb2349f81b3a2c02133a207c29eee9d2e91381e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 6 Aug 2022 13:47:13 +0200 Subject: [PATCH 16/28] Bump Cake.Core from 1.0.0 to 2.2.0 in /src (#172) Bumps [Cake.Core](https://github.com/cake-build/cake) from 1.0.0 to 2.2.0. - [Release notes](https://github.com/cake-build/cake/releases) - [Changelog](https://github.com/cake-build/cake/blob/develop/ReleaseNotes.md) - [Commits](https://github.com/cake-build/cake/compare/v1.0.0...v2.2.0) --- updated-dependencies: - dependency-name: Cake.Core dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: eoehen <49316770+eoehen@users.noreply.github.com> --- src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj b/src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj index cc1c953..6f63a38 100644 --- a/src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj +++ b/src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj @@ -25,7 +25,7 @@ - + all From d943f8bc946caba938c30aceb454440d35321602 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 6 Aug 2022 11:51:36 +0000 Subject: [PATCH 17/28] Bump Cake.Testing from 1.0.0 to 2.2.0 in /src (#171) Bumps [Cake.Testing](https://github.com/cake-build/cake) from 1.0.0 to 2.2.0. - [Release notes](https://github.com/cake-build/cake/releases) - [Changelog](https://github.com/cake-build/cake/blob/develop/ReleaseNotes.md) - [Commits](https://github.com/cake-build/cake/compare/v1.0.0...v2.2.0) --- updated-dependencies: - dependency-name: Cake.Testing dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: eoehen <49316770+eoehen@users.noreply.github.com> --- src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj index ce73248..08b890a 100644 --- a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj +++ b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj @@ -37,7 +37,7 @@ - + 1.1.118 From bab5ff215786bd09faaca47c2e73ff3e7dd2cbc1 Mon Sep 17 00:00:00 2001 From: Pascal Berger Date: Sat, 6 Aug 2022 13:25:20 +0000 Subject: [PATCH 18/28] Target Cake 2.0 instead of 2.2 (#185) --- src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj | 2 +- src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj index 08b890a..ffb5bc8 100644 --- a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj +++ b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj @@ -37,7 +37,7 @@ - + 1.1.118 diff --git a/src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj b/src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj index 6f63a38..4af0bf3 100644 --- a/src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj +++ b/src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj @@ -25,7 +25,7 @@ - + all From e6f213507bc9e426d5a2e9f7cdd489661c9d6a28 Mon Sep 17 00:00:00 2001 From: eoehen <49316770+eoehen@users.noreply.github.com> Date: Sat, 6 Aug 2022 15:33:04 +0200 Subject: [PATCH 19/28] Update Cake.Issues v 2.0.0 (#183) --- src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj | 4 ++-- src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj index ffb5bc8..a698e65 100644 --- a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj +++ b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj @@ -35,8 +35,8 @@ - - + + diff --git a/src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj b/src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj index 4af0bf3..79f9fca 100644 --- a/src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj +++ b/src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj @@ -26,7 +26,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -37,4 +37,4 @@ all - \ No newline at end of file + From 17d0783b17416cdfb7f0b4d613a66073fce7c7b0 Mon Sep 17 00:00:00 2001 From: Pascal Berger Date: Sat, 6 Aug 2022 13:38:42 +0000 Subject: [PATCH 20/28] Update Dependabot settings to ignore Cake 2.x (#186) --- .github/dependabot.yml | 41 ++++------------------------------------- 1 file changed, 4 insertions(+), 37 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 257ba7c..409c718 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,46 +9,13 @@ updates: ignore: - dependency-name: Cake.Core versions: - - ">= 0.34.a, < 0.35" - - dependency-name: Cake.Core - versions: - - ">= 0.35.a, < 0.36" - - dependency-name: Cake.Core - versions: - - ">= 0.36.a, < 0.37" - - dependency-name: Cake.Core - versions: - - ">= 0.37.a, < 0.38" - - dependency-name: Cake.Core - versions: - - ">= 0.38.a, < 0.39" - - dependency-name: Cake.Core + - "(,3.0)" + - dependency-name: Cake.Testing versions: - - "> 1.0.0, < 2" + - "(,3.0)" - dependency-name: Cake.Issues versions: - - "> 0.9.0, < 0.10" + - "> 1.0.0, < 2" - dependency-name: Cake.Issues.Testing - versions: - - "> 0.9.0, < 0.10" - - dependency-name: Cake.Testing - versions: - - ">= 0.34.a, < 0.35" - - dependency-name: Cake.Testing - versions: - - ">= 0.35.a, < 0.36" - - dependency-name: Cake.Testing - versions: - - ">= 0.36.a, < 0.37" - - dependency-name: Cake.Testing - versions: - - ">= 0.37.a, < 0.38" - - dependency-name: Cake.Testing - versions: - - ">= 0.38.a, < 0.39" - - dependency-name: Cake.Testing versions: - "> 1.0.0, < 2" - - dependency-name: Cake.Testing - versions: - - 1.0.0 From 254ba7f953513d81902ae0aafc9aa0d4876f1cd8 Mon Sep 17 00:00:00 2001 From: eoehen <49316770+eoehen@users.noreply.github.com> Date: Tue, 9 Aug 2022 21:45:28 +0200 Subject: [PATCH 21/28] Update to final version of Cake.Recipe 3.0 (#187) --- recipe.cake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe.cake b/recipe.cake index 24fbf99..d12b80d 100644 --- a/recipe.cake +++ b/recipe.cake @@ -1,4 +1,4 @@ -#load nuget:https://pkgs.dev.azure.com/cake-contrib/Home/_packaging/addins/nuget/v3/index.json?package=Cake.Recipe&version=3.0.0-beta0001-0007&prerelease +#load nuget:?package=Cake.Recipe&version=3.0.0 //************************************************************************************************* // Settings From 7a7760d88ce6f3ed894daedeb06f14961c0d8d94 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 11 Aug 2022 08:32:12 +0200 Subject: [PATCH 22/28] Bump Microsoft.NET.Test.Sdk from 17.2.0 to 17.3.0 in /src (#188) Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.2.0 to 17.3.0. - [Release notes](https://github.com/microsoft/vstest/releases) - [Commits](https://github.com/microsoft/vstest/compare/v17.2.0...v17.3.0) --- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj index a698e65..afbc1a0 100644 --- a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj +++ b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj @@ -34,7 +34,7 @@ - + From 173aecbf602a8d8939cececac557dd1228a33b6f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 25 Aug 2022 07:53:08 +0200 Subject: [PATCH 23/28] Bump Shouldly from 4.0.3 to 4.1.0 in /src (#189) Bumps [Shouldly](https://github.com/shouldly/shouldly) from 4.0.3 to 4.1.0. - [Release notes](https://github.com/shouldly/shouldly/releases) - [Changelog](https://github.com/shouldly/shouldly/blob/master/BREAKING%20CHANGES.txt) - [Commits](https://github.com/shouldly/shouldly/compare/v4.0.3...4.1.0) --- updated-dependencies: - dependency-name: Shouldly dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj index afbc1a0..07e56d8 100644 --- a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj +++ b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj @@ -38,7 +38,7 @@ - + 1.1.118 runtime; build; native; contentfiles; analyzers From 08f75defa8be017c90057d899c210570cc20d576 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 31 Aug 2022 08:06:57 +0200 Subject: [PATCH 24/28] Bump Microsoft.NET.Test.Sdk from 17.3.0 to 17.3.1 in /src (#190) Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.3.0 to 17.3.1. - [Release notes](https://github.com/microsoft/vstest/releases) - [Commits](https://github.com/microsoft/vstest/compare/v17.3.0...v17.3.1) --- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj index 07e56d8..d14fb06 100644 --- a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj +++ b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj @@ -34,7 +34,7 @@ - + From ebf8515a873ac8a9120370a7472fff22ad4035be Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 27 Sep 2022 09:54:34 +0200 Subject: [PATCH 25/28] Bump Microsoft.NET.Test.Sdk from 17.3.1 to 17.3.2 in /src (#191) Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.3.1 to 17.3.2. - [Release notes](https://github.com/microsoft/vstest/releases) - [Commits](https://github.com/microsoft/vstest/compare/v17.3.1...v17.3.2) --- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj index d14fb06..18cf40a 100644 --- a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj +++ b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj @@ -34,7 +34,7 @@ - + From 655ccf739566049c16d378a66a8af4bd198a2442 Mon Sep 17 00:00:00 2001 From: Pascal Berger Date: Thu, 22 Jun 2023 20:18:30 +0200 Subject: [PATCH 26/28] Fix build (#204) --- .appveyor.yml | 15 ++++++++++++--- azure-pipelines.yml | 13 +++++++++++++ 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 9a8e52c..8566e23 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -4,12 +4,21 @@ image: Visual Studio 2022 #---------------------------------# -# Build Script # +# Install .NET # #---------------------------------# install: - # Update to latest NuGet version since we require 5.3.0 for embedded icon - - ps: nuget update -self + - ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk" + - ps: mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null + - ps: Invoke-WebRequest -Uri "https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.ps1" -OutFile "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" + - ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 3.1.100 -InstallDir $env:DOTNET_INSTALL_DIR' + - ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 5.0.408 -InstallDir $env:DOTNET_INSTALL_DIR' + - ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 6.0.405 -InstallDir $env:DOTNET_INSTALL_DIR' + - ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path" + - ps: dotnet --info +#---------------------------------# +# Build Script # +#---------------------------------# build_script: - ps: .\build.ps1 --target=CI diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ae36be1..cc11666 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,5 +14,18 @@ jobs: pool: vmImage: 'windows-2022' steps: + - task: UseDotNet@2 + inputs: + version: '3.1.x' + displayName: 'Install .NET Core 3.1' + # .NET 5 required for GitVersion + - task: UseDotNet@2 + inputs: + version: '5.x' + displayName: 'Install .NET 5' + - task: UseDotNet@2 + inputs: + version: '6.x' + displayName: 'Install .NET 6' - powershell: ./build.ps1 displayName: 'Cake Build' From 74e9e1e68adeecbfada703f03133d068b396d7d1 Mon Sep 17 00:00:00 2001 From: Pascal Berger Date: Thu, 22 Jun 2023 20:39:02 +0200 Subject: [PATCH 27/28] Build against Cake.Issues 2.0 (#203) --- src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj | 4 ++-- src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj index 18cf40a..21daef6 100644 --- a/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj +++ b/src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj @@ -35,8 +35,8 @@ - - + + diff --git a/src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj b/src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj index 79f9fca..d4484bd 100644 --- a/src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj +++ b/src/Cake.Issues.DocFx/Cake.Issues.DocFx.csproj @@ -26,7 +26,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive From 0fb43f254dca2ce536b766e7d41cc70e599dc4ab Mon Sep 17 00:00:00 2001 From: Pascal Berger Date: Thu, 22 Jun 2023 20:41:14 +0200 Subject: [PATCH 28/28] Update release notes link --- nuspec/nuget/Cake.Issues.DocFx.nuspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuspec/nuget/Cake.Issues.DocFx.nuspec b/nuspec/nuget/Cake.Issues.DocFx.nuspec index 295e9c5..87f267a 100644 --- a/nuspec/nuget/Cake.Issues.DocFx.nuspec +++ b/nuspec/nuget/Cake.Issues.DocFx.nuspec @@ -24,7 +24,7 @@ See the Project Site for an overview of the whole ecosystem of addins for workin Copyright © BBT Software AG and contributors cake cake-addin cake-issues cake-issueprovider linting docfx - https://github.com/cake-contrib/Cake.Issues.DocFx/releases/tag/1.0.0 + https://github.com/cake-contrib/Cake.Issues.DocFx/releases/tag/2.0.0