cake-contrib / Cake.Recipe

:page_with_curl: A set of convention based Cake scripts
https://cake-contrib.github.io/Cake.Recipe
MIT License
70 stars 53 forks source link

Struggling to upgrade to Cake.Recipe 2.0 #766

Closed Jericho closed 3 years ago

Jericho commented 3 years ago

I'm trying to upgrade an addin that I had not touched in a long time from Cake.Recipe v1 to v2 but having some difficulties (here's the branch where I'm doing the upgrade: https://github.com/cake-contrib/Cake.Email.Common/tree/feature/cake1_and_recipe2).

Issue number 1: If my recipe.cake contains shouldCalculateVersion: true, I get the following exception:

----------------------------------------
Setup
----------------------------------------
Tool GitVersion.Tool is already installed, with required version.
Testing to see if valid git repository...
Calculating Semantic Version...
The application to execute does not exist: 'C:\Users\desau\AppData\Local\Temp\.net\GitVersion\hpgxtqvk.qfu\gitversion.dll'.

----------------------------------------
Teardown
----------------------------------------
An error occurred in a custom teardown action.
Teardown error: System.InvalidOperationException: The context data has not been setup.
   at Cake.Core.CakeDataService.Get[TData]() in C:\projects\cake\src\Cake.Core\CakeDataService.cs:line 32
   at Cake.Core.CakeEngineActions.<>c__DisplayClass21_0`1.<RegisterTeardown>b__0(ITeardownContext context) in C:\projects\cake\src\Cake.Core\CakeEngineActions.cs:line 64
   at Cake.Core.DefaultExecutionStrategy.PerformTeardown(Action`1 action, ITeardownContext teardownContext) in C:\projects\cake\src\Cake.Core\DefaultExecutionStrategy.cs:line 67
   at Cake.Core.CakeEngine.PerformTeardown(IExecutionStrategy strategy, ICakeContext context, Stopwatch stopWatch, CakeReport report, Boolean exceptionWasThrown, Exception thrownException) in C:\projects\cake\src\Cake.Core\CakeEngine.cs:line 494
Error: One or more errors occurred. (GitVersion: Process returned an error (exit code -2147450726).)
        GitVersion: Process returned an error (exit code -2147450726).
Non-Zero exit code (1), exiting...

Issue number 2: If I change shouldCalculateVersion: false, I an exception about missing SolutionInfo.cs:

----------------------------------------
Setup
----------------------------------------
Tool GitVersion.Tool is already installed, with required version.
Testing to see if valid git repository...
Fetching version from SolutionInfo...

----------------------------------------
Teardown
----------------------------------------
An error occurred in a custom teardown action.
Teardown error: System.InvalidOperationException: The context data has not been setup.
   at Cake.Core.CakeDataService.Get[TData]() in C:\projects\cake\src\Cake.Core\CakeDataService.cs:line 32
   at Cake.Core.CakeEngineActions.<>c__DisplayClass21_0`1.<RegisterTeardown>b__0(ITeardownContext context) in C:\projects\cake\src\Cake.Core\CakeEngineActions.cs:line 64
   at Cake.Core.DefaultExecutionStrategy.PerformTeardown(Action`1 action, ITeardownContext teardownContext) in C:\projects\cake\src\Cake.Core\DefaultExecutionStrategy.cs:line 67
   at Cake.Core.CakeEngine.PerformTeardown(IExecutionStrategy strategy, ICakeContext context, Stopwatch stopWatch, CakeReport report, Boolean exceptionWasThrown, Exception thrownException) in C:\projects\cake\src\Cake.Core\CakeEngine.cs:line 494
Error: One or more errors occurred. (Assembly info file 'D:/_build/Cake.Email.Common/Source/SolutionInfo.cs' does not exist.)
        Assembly info file 'D:/_build/Cake.Email.Common/Source/SolutionInfo.cs' does not exist.

I'm going to continue investigating

gep13 commented 3 years ago

@Jericho which addin is this? Do you have the work so far on a branch that I could take a look at?

Jericho commented 3 years ago

here's the branch where I'm doing the upgrade: https://github.com/cake-contrib/Cake.Email.Common/tree/feature/cake1_and_recipe2

gep13 commented 3 years ago

If I change the GitVersion.yml file to the new format:

mode: ContinuousDelivery
branches:
  release:
    regex: releases?[/-]
    mode: ContinuousDeployment
    tag: rc
  develop:
    regex: dev(elop)?(ment)?$
    mode: ContinuousDeployment
    tag: alpha
  hotfix:
    regex: hotfix(es)?[/-]
    mode: ContinuousDeployment
    tag: beta
ignore:
  sha: []

Then I get a build that runs to completion:

image

Jericho commented 3 years ago

I fixed the GitVersion.yaml file but I continue to get the same exception. I cleared the tools folder and artifacts to be safe.

----------------------------------------
Setup
----------------------------------------
Tool GitVersion.Tool is already installed, with required version.
Testing to see if valid git repository...
Calculating Semantic Version...
The application to execute does not exist: 'C:\Users\desau\AppData\Local\Temp\.net\GitVersion\hpgxtqvk.qfu\gitversion.dll'.

----------------------------------------
Teardown
----------------------------------------
An error occurred in a custom teardown action.
Teardown error: System.InvalidOperationException: The context data has not been setup.
   at Cake.Core.CakeDataService.Get[TData]() in C:\projects\cake\src\Cake.Core\CakeDataService.cs:line 32
   at Cake.Core.CakeEngineActions.<>c__DisplayClass21_0`1.<RegisterTeardown>b__0(ITeardownContext context) in C:\projects\cake\src\Cake.Core\CakeEngineActions.cs:line 64
   at Cake.Core.DefaultExecutionStrategy.PerformTeardown(Action`1 action, ITeardownContext teardownContext) in C:\projects\cake\src\Cake.Core\DefaultExecutionStrategy.cs:line 67
   at Cake.Core.CakeEngine.PerformTeardown(IExecutionStrategy strategy, ICakeContext context, Stopwatch stopWatch, CakeReport report, Boolean exceptionWasThrown, Exception thrownException) in C:\projects\cake\src\Cake.Core\CakeEngine.cs:line 494
Error: One or more errors occurred. (GitVersion: Process returned an error (exit code -2147450726).)
        GitVersion: Process returned an error (exit code -2147450726).
Non-Zero exit code (1), exiting...

Am I supposed to install GitVersion manually or something?

gep13 commented 3 years ago

GitVersion will be installed as part of Cake.Recipe, but I am wondering if we are seeing another issue here.

Can you run with diagnostic verbosity, and post the same section of the build again please?

Jericho commented 3 years ago

Sure. Hold on...

Jericho commented 3 years ago
desau@ZENBOOK-15  D:\_build\Cake.Email.Common   feature/cake1_and_recipe2 ↑1 +0 ~1 -0 !            [15:46]
❯ .\build --verbosity=diagnostic
Tool 'cake.tool' (version '0.38.4') was restored. Available commands: dotnet-cake

Restore was successful.
Verifying assembly 'Cake.DotNetTool.Module, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null'.
Registering module Cake.DotNetTool.Module.DotNetToolModule...
NuGet Config not specified. Will use NuGet default mechanism for resolving it.
Analyzing build script...
Analyzing D:/_build/Cake.Email.Common/recipe.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/addins.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/addins.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/build.cake...
Script 'D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/addins.cake' has already been processed.
Analyzing D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/IssuesBuildTasksDefinitions.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/version.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/data/data.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/data/IssuesData.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/parameters/parameters.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/parameters/IssuesParameters.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/parameters/IssuesParametersInputFiles.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/parameters/IssuesParametersReporting.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/parameters/IssuesParametersBuildServer.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/parameters/IssuesParametersPullRequestSystem.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/tasks/tasks.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/tasks/buildservers/buildservers.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/tasks/buildservers/IIssuesBuildServer.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/tasks/buildservers/BaseBuildServer.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/tasks/buildservers/AppVeyorBuildServer.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/tasks/buildservers/AzureDevOpsBuildServer.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/tasks/buildservers/GitHubActionsBuildServer.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/tasks/pullrequestsystems/pullrequestsystems.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/tasks/pullrequestsystems/IIssuesPullRequestSystem.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/tasks/pullrequestsystems/BasePullRequestSystem.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/tasks/pullrequestsystems/AzureDevOpsPullRequestSystem.cake...
Script 'D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/IssuesBuildTasksDefinitions.cake' has already been processed.
Script 'D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/version.cake' has already been processed.
Script 'D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/data/data.cake' has already been processed.
Script 'D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/data/IssuesData.cake' has already been processed.
Script 'D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/parameters/IssuesParameters.cake' has already been processed.
Script 'D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/parameters/IssuesParametersBuildServer.cake' has already been processed.
Script 'D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/parameters/IssuesParametersInputFiles.cake' has already been processed.
Script 'D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/parameters/IssuesParametersPullRequestSystem.cake' has already been processed.
Script 'D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/parameters/IssuesParametersReporting.cake' has already been processed.
Script 'D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/parameters/parameters.cake' has already been processed.
Script 'D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/tasks/tasks.cake' has already been processed.
Script 'D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/tasks/buildservers/AppVeyorBuildServer.cake' has already been processed.
Script 'D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/tasks/buildservers/AzureDevOpsBuildServer.cake' has already been processed.
Script 'D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/tasks/buildservers/BaseBuildServer.cake' has already been processed.
Script 'D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/tasks/buildservers/buildservers.cake' has already been processed.
Script 'D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/tasks/buildservers/GitHubActionsBuildServer.cake' has already been processed.
Script 'D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/tasks/buildservers/IIssuesBuildServer.cake' has already been processed.
Script 'D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/tasks/pullrequestsystems/AzureDevOpsPullRequestSystem.cake' has already been processed.
Script 'D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/tasks/pullrequestsystems/BasePullRequestSystem.cake' has already been processed.
Analyzing D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/tasks/pullrequestsystems/GitHubPullRequestSystem.cake...
Script 'D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/tasks/pullrequestsystems/IIssuesPullRequestSystem.cake' has already been processed.
Script 'D:/_build/ZoomNet/tools/Cake.Issues.Recipe.0.4.3/Content/tasks/pullrequestsystems/pullrequestsystems.cake' has already been processed.
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/analyzing.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/appveyor.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/azurepipelines.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/build.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/buildData.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/buildPlatform.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/buildProvider.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/codecov.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/configuration.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/coveralls.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/credentials.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/deterministic.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/email.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/environment.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/github-actions.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/gitreleasemanager.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/gitter.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/gitversion.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/localbuild.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/microsoftteams.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/modules.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/packages.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/PackageSourceData.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/parameters.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/paths.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/setup.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/slack.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/tasks.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/teamcity.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/testing.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/tools.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/toolsettings.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/transifex.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/travis-ci.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/twitter.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/version.cake...
Analyzing D:/_build/ZoomNet/tools/Cake.Recipe.2.1.0/Content/wyam.cake...
Processing build script...
Installing addins...
The addin Cake.Codecov will reference Cake.Codecov.dll.
The addin Cake.Coveralls will reference Cake.Coveralls.dll.
The addin Cake.Coverlet will reference Cake.Coverlet.dll.
The addin Portable.BouncyCastle will reference BouncyCastle.Crypto.dll.
The addin MimeKit will reference MimeKit.dll.
The addin MailKit will reference MailKit.dll.
The addin MimeTypesMap will reference MimeTypesMap.dll.
The addin Cake.Email.Common will reference Cake.Email.Common.dll.
The addin Cake.Email will reference Cake.Email.dll.
The addin Cake.Figlet will reference Cake.Figlet.dll.
The addin Cake.Gitter will reference Cake.Gitter.dll.
The addin Cake.Incubator will reference Cake.Incubator.dll.
The addin Cake.Kudu will reference Cake.Kudu.dll.
The addin Cake.MicrosoftTeams will reference Cake.MicrosoftTeams.dll.
The addin Cake.Slack will reference Cake.Slack.dll.
The addin Cake.Transifex will reference Cake.Transifex.dll.
The addin Cake.Twitter will reference Cake.Twitter.dll.
The addin Cake.Wyam will reference Cake.Wyam.dll.
The addin Cake.Git will reference Cake.Git.dll.
The addin Cake.Git will reference LibGit2Sharp.dll.
The addin Cake.Issues will reference Cake.Issues.dll.
The addin Cake.Issues.MsBuild will reference Cake.Issues.MsBuild.dll.
The addin Cake.Issues.MsBuild will reference Microsoft.Build.Framework.dll.
The addin Cake.Issues.MsBuild will reference Microsoft.Build.Utilities.Core.dll.
The addin Cake.Issues.MsBuild will reference StructuredLogger.dll.
The addin Cake.Issues.MsBuild will reference System.Collections.Immutable.dll.
The addin Cake.Issues.InspectCode will reference Cake.Issues.InspectCode.dll.
The addin Cake.Issues.DupFinder will reference Cake.Issues.DupFinder.dll.
The addin Cake.Issues.Markdownlint will reference Cake.Issues.Markdownlint.dll.
The addin Cake.Issues.Reporting will reference Cake.Issues.Reporting.dll.
The addin Cake.Issues.Reporting.Generic will reference Cake.Issues.Reporting.Generic.dll.
The addin Cake.Issues.Reporting.Generic will reference Gazorator.dll.
The addin Cake.Issues.Reporting.Generic will reference Microsoft.AspNetCore.Razor.Language.dll.
The addin Cake.Issues.Reporting.Generic will reference Microsoft.DotNet.PlatformAbstractions.dll.
The addin Cake.Issues.Reporting.Generic will reference Microsoft.Extensions.DependencyModel.dll.
The addin Cake.Issues.Reporting.Generic will reference Newtonsoft.Json.dll.
The addin Cake.Issues.PullRequests will reference Cake.Issues.PullRequests.dll.
The addin Cake.Issues.PullRequests.AppVeyor will reference Cake.Issues.PullRequests.AppVeyor.dll.
The addin Cake.Issues.PullRequests.AzureDevOps will reference Cake.Issues.PullRequests.AzureDevOps.dll.
The addin Cake.Issues.PullRequests.GitHubActions will reference Cake.Issues.PullRequests.GitHubActions.dll.
The addin Cake.AzureDevOps will reference Cake.AzureDevOps.dll.
The addin Cake.AzureDevOps will reference Microsoft.IdentityModel.Clients.ActiveDirectory.dll.
The addin Cake.AzureDevOps will reference Microsoft.TeamFoundation.Build2.WebApi.dll.
The addin Cake.AzureDevOps will reference Microsoft.TeamFoundation.Common.dll.
The addin Cake.AzureDevOps will reference Microsoft.TeamFoundation.Core.WebApi.dll.
The addin Cake.AzureDevOps will reference Microsoft.TeamFoundation.DistributedTask.Common.Contracts.dll.
The addin Cake.AzureDevOps will reference Microsoft.TeamFoundation.SourceControl.WebApi.dll.
The addin Cake.AzureDevOps will reference Microsoft.TeamFoundation.TestManagement.WebApi.dll.
The addin Cake.AzureDevOps will reference Microsoft.VisualStudio.Services.Client.Interactive.dll.
The addin Cake.AzureDevOps will reference Microsoft.VisualStudio.Services.Common.dll.
The addin Cake.AzureDevOps will reference Microsoft.VisualStudio.Services.WebApi.dll.
The addin Cake.AzureDevOps will reference System.ComponentModel.Annotations.dll.
The addin Cake.AzureDevOps will reference System.Net.Http.Formatting.dll.
The addin Cake.AzureDevOps will reference TfsUrlParser.dll.
Verifying assembly 'Cake.Codecov, Version=0.9.1.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.Coveralls, Version=0.10.2.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.Coverlet, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'BouncyCastle.Crypto, Version=1.8.5.0, Culture=neutral, PublicKeyToken=0e99375e54769942'.
Verifying assembly 'MimeKit, Version=2.9.0.0, Culture=neutral, PublicKeyToken=bede1c8a46c66814'.
Verifying assembly 'MailKit, Version=2.8.0.0, Culture=neutral, PublicKeyToken=4e064fe7c44a8f1b'.
Verifying assembly 'MimeTypesMap, Version=1.0.8.0, Culture=neutral, PublicKeyToken=1b320cc08ad5aa89'.
Verifying assembly 'Cake.Email.Common, Version=0.4.2.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.Email, Version=0.10.0.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.Figlet, Version=1.3.1.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.Gitter, Version=0.11.1.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.Incubator, Version=5.1.0.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.Kudu, Version=0.11.0.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.MicrosoftTeams, Version=0.9.0.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.Slack, Version=0.13.0.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.Transifex, Version=0.9.1.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.Twitter, Version=0.10.1.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.Wyam, Version=2.2.9.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.Git, Version=0.22.0.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'LibGit2Sharp, Version=0.26.0.0, Culture=neutral, PublicKeyToken=7cbde695407f0333'.
Verifying assembly 'Cake.Issues, Version=0.9.1.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.Issues.MsBuild, Version=0.9.0.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Verifying assembly 'Microsoft.Build.Utilities.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Verifying assembly 'StructuredLogger, Version=2.0.174.0, Culture=neutral, PublicKeyToken=d4c7181801cb6448'.
Verifying assembly 'System.Collections.Immutable, Version=1.2.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Verifying assembly 'Cake.Issues.InspectCode, Version=0.9.0.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.Issues.DupFinder, Version=0.9.0.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.Issues.Markdownlint, Version=0.9.0.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.Issues.Reporting, Version=0.9.0.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.Issues.Reporting.Generic, Version=0.9.0.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Gazorator, Version=0.5.2.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Microsoft.AspNetCore.Razor.Language, Version=3.1.5.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
Verifying assembly 'Microsoft.DotNet.PlatformAbstractions, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
Verifying assembly 'Microsoft.Extensions.DependencyModel, Version=2.0.4.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
Verifying assembly 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'.
Verifying assembly 'Cake.Issues.PullRequests, Version=0.9.0.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.Issues.PullRequests.AppVeyor, Version=0.9.0.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.Issues.PullRequests.AzureDevOps, Version=0.9.1.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.Issues.PullRequests.GitHubActions, Version=0.9.0.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.AzureDevOps, Version=0.5.0.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory, Version=3.17.2.31801, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Verifying assembly 'Microsoft.TeamFoundation.Build2.WebApi, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Verifying assembly 'Microsoft.TeamFoundation.Common, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Verifying assembly 'Microsoft.TeamFoundation.Core.WebApi, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Verifying assembly 'Microsoft.TeamFoundation.DistributedTask.Common.Contracts, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Verifying assembly 'Microsoft.TeamFoundation.SourceControl.WebApi, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Verifying assembly 'Microsoft.TeamFoundation.TestManagement.WebApi, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Verifying assembly 'Microsoft.VisualStudio.Services.Client.Interactive, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Verifying assembly 'Microsoft.VisualStudio.Services.Common, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Verifying assembly 'Microsoft.VisualStudio.Services.WebApi, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Verifying assembly 'System.ComponentModel.Annotations, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Verifying assembly 'System.Net.Http.Formatting, Version=5.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Verifying assembly 'TfsUrlParser, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null'.
Adding assembly reference to System.Private.CoreLib.dll...
Adding assembly reference to System.Linq.Expressions.dll...
Adding assembly reference to Microsoft.CSharp.dll...
Adding assembly reference to Cake.Core.dll...
Adding assembly reference to Cake.Common.dll...
Adding assembly reference to netstandard.dll...
Adding assembly reference to Microsoft.Win32.Registry.dll...
Adding assembly reference to Cake.Codecov.dll...
Adding assembly reference to Cake.Coveralls.dll...
Adding assembly reference to Cake.Coverlet.dll...
Adding assembly reference to BouncyCastle.Crypto.dll...
Adding assembly reference to MimeKit.dll...
Adding assembly reference to MailKit.dll...
Adding assembly reference to MimeTypesMap.dll...
Adding assembly reference to Cake.Email.Common.dll...
Adding assembly reference to Cake.Email.dll...
Adding assembly reference to Cake.Figlet.dll...
Adding assembly reference to Cake.Gitter.dll...
Adding assembly reference to Cake.Incubator.dll...
Adding assembly reference to Cake.Kudu.dll...
Adding assembly reference to Cake.MicrosoftTeams.dll...
Adding assembly reference to Cake.Slack.dll...
Adding assembly reference to Cake.Transifex.dll...
Adding assembly reference to Cake.Twitter.dll...
Adding assembly reference to Cake.Wyam.dll...
Adding assembly reference to Cake.Git.dll...
Adding assembly reference to LibGit2Sharp.dll...
Adding assembly reference to Cake.Issues.dll...
Adding assembly reference to Cake.Issues.MsBuild.dll...
Adding assembly reference to Microsoft.Build.Framework.dll...
Adding assembly reference to Microsoft.Build.Utilities.Core.dll...
Adding assembly reference to StructuredLogger.dll...
Adding assembly reference to System.Collections.Immutable.dll...
Adding assembly reference to Cake.Issues.InspectCode.dll...
Adding assembly reference to Cake.Issues.DupFinder.dll...
Adding assembly reference to Cake.Issues.Markdownlint.dll...
Adding assembly reference to Cake.Issues.Reporting.dll...
Adding assembly reference to Cake.Issues.Reporting.Generic.dll...
Adding assembly reference to Gazorator.dll...
Adding assembly reference to Microsoft.AspNetCore.Razor.Language.dll...
Adding assembly reference to Microsoft.DotNet.PlatformAbstractions.dll...
Adding assembly reference to Microsoft.Extensions.DependencyModel.dll...
Adding assembly reference to Newtonsoft.Json.dll...
Adding assembly reference to Cake.Issues.PullRequests.dll...
Adding assembly reference to Cake.Issues.PullRequests.AppVeyor.dll...
Adding assembly reference to Cake.Issues.PullRequests.AzureDevOps.dll...
Adding assembly reference to Cake.Issues.PullRequests.GitHubActions.dll...
Adding assembly reference to Cake.AzureDevOps.dll...
Adding assembly reference to Microsoft.IdentityModel.Clients.ActiveDirectory.dll...
Adding assembly reference to Microsoft.TeamFoundation.Build2.WebApi.dll...
Adding assembly reference to Microsoft.TeamFoundation.Common.dll...
Adding assembly reference to Microsoft.TeamFoundation.Core.WebApi.dll...
Adding assembly reference to Microsoft.TeamFoundation.DistributedTask.Common.Contracts.dll...
Adding assembly reference to Microsoft.TeamFoundation.SourceControl.WebApi.dll...
Adding assembly reference to Microsoft.TeamFoundation.TestManagement.WebApi.dll...
Adding assembly reference to Microsoft.VisualStudio.Services.Client.Interactive.dll...
Adding assembly reference to Microsoft.VisualStudio.Services.Common.dll...
Adding assembly reference to Microsoft.VisualStudio.Services.WebApi.dll...
Adding assembly reference to System.ComponentModel.Annotations.dll...
Adding assembly reference to System.Net.Http.Formatting.dll...
Adding assembly reference to TfsUrlParser.dll...
Importing namespace Cake.AzureDevOps...
Importing namespace Cake.AzureDevOps.Authentication...
Importing namespace Cake.AzureDevOps.Pipelines...
Importing namespace Cake.AzureDevOps.Repos...
Importing namespace Cake.AzureDevOps.Repos.PullRequest...
Importing namespace Cake.AzureDevOps.Repos.PullRequest.CommentThread...
Importing namespace Cake.Codecov...
Importing namespace Cake.Common...
Importing namespace Cake.Common.Build...
Importing namespace Cake.Common.Build.AppVeyor...
Importing namespace Cake.Common.Build.AppVeyor.Data...
Importing namespace Cake.Common.Build.AzurePipelines...
Importing namespace Cake.Common.Build.AzurePipelines.Data...
Importing namespace Cake.Common.Build.Bamboo...
Importing namespace Cake.Common.Build.Bamboo.Data...
Importing namespace Cake.Common.Build.BitbucketPipelines...
Importing namespace Cake.Common.Build.BitbucketPipelines.Data...
Importing namespace Cake.Common.Build.Bitrise...
Importing namespace Cake.Common.Build.Bitrise.Data...
Importing namespace Cake.Common.Build.ContinuaCI...
Importing namespace Cake.Common.Build.ContinuaCI.Data...
Importing namespace Cake.Common.Build.GitHubActions...
Importing namespace Cake.Common.Build.GitHubActions.Data...
Importing namespace Cake.Common.Build.GitLabCI...
Importing namespace Cake.Common.Build.GitLabCI.Data...
Importing namespace Cake.Common.Build.GoCD...
Importing namespace Cake.Common.Build.GoCD.Data...
Importing namespace Cake.Common.Build.Jenkins...
Importing namespace Cake.Common.Build.Jenkins.Data...
Importing namespace Cake.Common.Build.MyGet...
Importing namespace Cake.Common.Build.TeamCity...
Importing namespace Cake.Common.Build.TFBuild...
Importing namespace Cake.Common.Build.TFBuild.Data...
Importing namespace Cake.Common.Build.TravisCI...
Importing namespace Cake.Common.Build.TravisCI.Data...
Importing namespace Cake.Common.Diagnostics...
Importing namespace Cake.Common.IO...
Importing namespace Cake.Common.IO.Paths...
Importing namespace Cake.Common.Net...
Importing namespace Cake.Common.Security...
Importing namespace Cake.Common.Solution...
Importing namespace Cake.Common.Solution.Project...
Importing namespace Cake.Common.Solution.Project.Properties...
Importing namespace Cake.Common.Solution.Project.XmlDoc...
Importing namespace Cake.Common.Text...
Importing namespace Cake.Common.Tools...
Importing namespace Cake.Common.Tools.Cake...
Importing namespace Cake.Common.Tools.Chocolatey...
Importing namespace Cake.Common.Tools.Chocolatey.ApiKey...
Importing namespace Cake.Common.Tools.Chocolatey.Config...
Importing namespace Cake.Common.Tools.Chocolatey.Download...
Importing namespace Cake.Common.Tools.Chocolatey.Features...
Importing namespace Cake.Common.Tools.Chocolatey.Install...
Importing namespace Cake.Common.Tools.Chocolatey.New...
Importing namespace Cake.Common.Tools.Chocolatey.Pack...
Importing namespace Cake.Common.Tools.Chocolatey.Pin...
Importing namespace Cake.Common.Tools.Chocolatey.Push...
Importing namespace Cake.Common.Tools.Chocolatey.Sources...
Importing namespace Cake.Common.Tools.Chocolatey.Uninstall...
Importing namespace Cake.Common.Tools.Chocolatey.Upgrade...
Importing namespace Cake.Common.Tools.DotCover...
Importing namespace Cake.Common.Tools.DotCover.Analyse...
Importing namespace Cake.Common.Tools.DotCover.Cover...
Importing namespace Cake.Common.Tools.DotCover.Merge...
Importing namespace Cake.Common.Tools.DotCover.Report...
Importing namespace Cake.Common.Tools.DotNetCore...
Importing namespace Cake.Common.Tools.DotNetCore.Build...
Importing namespace Cake.Common.Tools.DotNetCore.BuildServer...
Importing namespace Cake.Common.Tools.DotNetCore.Clean...
Importing namespace Cake.Common.Tools.DotNetCore.Execute...
Importing namespace Cake.Common.Tools.DotNetCore.MSBuild...
Importing namespace Cake.Common.Tools.DotNetCore.NuGet.Delete...
Importing namespace Cake.Common.Tools.DotNetCore.NuGet.Push...
Importing namespace Cake.Common.Tools.DotNetCore.NuGet.Source...
Importing namespace Cake.Common.Tools.DotNetCore.Pack...
Importing namespace Cake.Common.Tools.DotNetCore.Publish...
Importing namespace Cake.Common.Tools.DotNetCore.Restore...
Importing namespace Cake.Common.Tools.DotNetCore.Run...
Importing namespace Cake.Common.Tools.DotNetCore.Test...
Importing namespace Cake.Common.Tools.DotNetCore.Tool...
Importing namespace Cake.Common.Tools.DotNetCore.VSTest...
Importing namespace Cake.Common.Tools.DupFinder...
Importing namespace Cake.Common.Tools.Fixie...
Importing namespace Cake.Common.Tools.GitLink...
Importing namespace Cake.Common.Tools.GitReleaseManager...
Importing namespace Cake.Common.Tools.GitReleaseManager.AddAssets...
Importing namespace Cake.Common.Tools.GitReleaseManager.Close...
Importing namespace Cake.Common.Tools.GitReleaseManager.Create...
Importing namespace Cake.Common.Tools.GitReleaseManager.Discard...
Importing namespace Cake.Common.Tools.GitReleaseManager.Export...
Importing namespace Cake.Common.Tools.GitReleaseManager.Label...
Importing namespace Cake.Common.Tools.GitReleaseManager.Open...
Importing namespace Cake.Common.Tools.GitReleaseManager.Publish...
Importing namespace Cake.Common.Tools.GitReleaseNotes...
Importing namespace Cake.Common.Tools.GitVersion...
Importing namespace Cake.Common.Tools.ILMerge...
Importing namespace Cake.Common.Tools.ILRepack...
Importing namespace Cake.Common.Tools.InnoSetup...
Importing namespace Cake.Common.Tools.InspectCode...
Importing namespace Cake.Common.Tools.MSBuild...
Importing namespace Cake.Common.Tools.MSpec...
Importing namespace Cake.Common.Tools.MSTest...
Importing namespace Cake.Common.Tools.NSIS...
Importing namespace Cake.Common.Tools.NuGet...
Importing namespace Cake.Common.Tools.NuGet.Add...
Importing namespace Cake.Common.Tools.NuGet.Delete...
Importing namespace Cake.Common.Tools.NuGet.Init...
Importing namespace Cake.Common.Tools.NuGet.Install...
Importing namespace Cake.Common.Tools.NuGet.List...
Importing namespace Cake.Common.Tools.NuGet.Pack...
Importing namespace Cake.Common.Tools.NuGet.Push...
Importing namespace Cake.Common.Tools.NuGet.Restore...
Importing namespace Cake.Common.Tools.NuGet.SetApiKey...
Importing namespace Cake.Common.Tools.NuGet.SetProxy...
Importing namespace Cake.Common.Tools.NuGet.Sources...
Importing namespace Cake.Common.Tools.NuGet.Update...
Importing namespace Cake.Common.Tools.NUnit...
Importing namespace Cake.Common.Tools.OctopusDeploy...
Importing namespace Cake.Common.Tools.OpenCover...
Importing namespace Cake.Common.Tools.ReportGenerator...
Importing namespace Cake.Common.Tools.ReportUnit...
Importing namespace Cake.Common.Tools.Roundhouse...
Importing namespace Cake.Common.Tools.SignTool...
Importing namespace Cake.Common.Tools.SpecFlow...
Importing namespace Cake.Common.Tools.SpecFlow.StepDefinitionReport...
Importing namespace Cake.Common.Tools.SpecFlow.TestExecutionReport...
Importing namespace Cake.Common.Tools.TextTransform...
Importing namespace Cake.Common.Tools.VSTest...
Importing namespace Cake.Common.Tools.VSWhere...
Importing namespace Cake.Common.Tools.VSWhere.All...
Importing namespace Cake.Common.Tools.VSWhere.Latest...
Importing namespace Cake.Common.Tools.VSWhere.Legacy...
Importing namespace Cake.Common.Tools.VSWhere.Product...
Importing namespace Cake.Common.Tools.WiX...
Importing namespace Cake.Common.Tools.WiX.Heat...
Importing namespace Cake.Common.Tools.XBuild...
Importing namespace Cake.Common.Tools.XUnit...
Importing namespace Cake.Common.Xml...
Importing namespace Cake.Core...
Importing namespace Cake.Core.Diagnostics...
Importing namespace Cake.Core.IO...
Importing namespace Cake.Core.Scripting...
Importing namespace Cake.Coveralls...
Importing namespace Cake.Coverlet...
Importing namespace Cake.Email...
Importing namespace Cake.Email.Common...
Importing namespace Cake.Figlet...
Importing namespace Cake.Git...
Importing namespace Cake.Gitter...
Importing namespace Cake.Gitter.Chat...
Importing namespace Cake.Incubator.AssertExtensions...
Importing namespace Cake.Incubator.DotNetBuildExtensions...
Importing namespace Cake.Incubator.DotNetCoreTestExtensions...
Importing namespace Cake.Incubator.EnumerableExtensions...
Importing namespace Cake.Incubator.FileExtensions...
Importing namespace Cake.Incubator.FilePathExtensions...
Importing namespace Cake.Incubator.FileSystemExtensions...
Importing namespace Cake.Incubator.GlobbingExtensions...
Importing namespace Cake.Incubator.LoggingExtensions...
Importing namespace Cake.Incubator.Project...
Importing namespace Cake.Incubator.ProjectPathExtensions...
Importing namespace Cake.Incubator.SolutionParserExtensions...
Importing namespace Cake.Incubator.StringExtensions...
Importing namespace Cake.Issues...
Importing namespace Cake.Issues.DupFinder...
Importing namespace Cake.Issues.InspectCode...
Importing namespace Cake.Issues.Markdownlint...
Importing namespace Cake.Issues.MsBuild...
Importing namespace Cake.Issues.PullRequests...
Importing namespace Cake.Issues.PullRequests.AppVeyor...
Importing namespace Cake.Issues.PullRequests.AzureDevOps...
Importing namespace Cake.Issues.PullRequests.GitHubActions...
Importing namespace Cake.Issues.Reporting...
Importing namespace Cake.Issues.Reporting.Generic...
Importing namespace Cake.Kudu...
Importing namespace Cake.Kudu.KuduSync...
Importing namespace Cake.Kudu.Provider...
Importing namespace Cake.MicrosoftTeams...
Importing namespace Cake.Slack...
Importing namespace Cake.Slack.Chat...
Importing namespace Cake.Transifex...
Importing namespace Cake.Twitter...
Importing namespace Cake.Wyam...
Importing namespace System...
Importing namespace System.Collections.Generic...
Importing namespace System.IO...
Importing namespace System.Linq...
Importing namespace System.Runtime.InteropServices...
Importing namespace System.Text...
Importing namespace System.Threading.Tasks...
Compiling build script...
Using Local Build Provider...
Testing to see if valid git repository...
Could not resolve path for tool "git" using these directories: C:/ProgramData/Boxstarter,C:/WINDOWS/system32,C:/WINDOWS,C:/WINDOWS/System32/Wbem,C:/WINDOWS/System32/WindowsPowerShell/v1.0,C:/WINDOWS/System32/OpenSSH,C:/ProgramData/chocolatey/bin,C:/Program Files/Microsoft VS Code/bin,C:/Program Files/dotnet,C:/Program Files/Microsoft SQL Server/130/Tools/Binn,C:/WINDOWS/system32,C:/WINDOWS,C:/WINDOWS/System32/Wbem,C:/WINDOWS/System32/WindowsPowerShell/v1.0,C:/WINDOWS/System32/OpenSSH,C:/Program Files/Intel/WiFi/bin,C:/Program Files/Common Files/Intel/WirelessCommon,C:/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn,C:/Program Files/TortoiseGit/bin,C:/Program Files (x86)/dotnet,C:/Program Files/Git/cmd,C:/Program Files/Git/mingw64/bin,C:/Program Files/Git/usr/bin,C:/Program Files/Docker/Docker/resources/bin,C:/ProgramData/DockerDesktop/version-bin,C:/Users/desau/AppData/Local/Microsoft/WindowsApps,C:/Users/desau/AppData/Local/Programs/Fiddler,C:/Users/desau/.dotnet/tools,C:/Users/desau/AppData/Local/Microsoft/WindowsApps,C:/Users/desau/.dotnet/tools,C:/Program Files (x86)/GitHub CLI,C:/Users/desau/.dotnet/tools,C:/Users/desau/AppData/Local/Keybase
Unable to find git, setting default values for repository properties...
Printing Build Parameters...
IsLocalBuild: True
IsPullRequest: False
IsMainRepository: False
IsPublicRepository: True
IsTagged: False
BranchType: Unknown
TreatWarningsAsErrors: True
ShouldSendEmail: True
ShouldPostToGitter: True
ShouldPostToSlack: True
ShouldPostToTwitter: True
ShouldPostToMicrosoftTeams: False
ShouldDownloadFullReleaseNotes: False
ShouldDownloadMilestoneReleaseNotes: False
ShouldNotifyBetaReleases: False
ShouldDeleteCachedFiles: False
ShouldGenerateDocumentation: False
ShouldDocumentSourceFiles: True
ShouldRunIntegrationTests: False
ShouldCalculateVersion: True
BuildAgentOperatingSystem: Windows
IsRunningOnAppVeyor: False
RepositoryOwner: cake-contrib
RepositoryName: Cake.Email.Common
TransifexEnabled: False
CanPullTranslations: False
CanPushTranslations: False
PrepareLocalRelease: False
BuildAgentOperatingSystem: Windows
ForceContinuousIntegration: False
PreferredBuildAgentOperatingSystem: Windows
PreferredBuildProviderType: AppVeyor
WyamRootDirectoryPath: D:/_build/Cake.Email.Common/docs
WyamPublishDirectoryPath: D:/_build/Cake.Email.Common/BuildArtifacts/temp/_PublishedDocumentation
WyamConfigurationFile: D:/_build/Cake.Email.Common/config.wyam
WyamRecipe: Docs
WyamTheme: Samson
WyamSourceFiles: ../../Source/**/{!bin,!obj,!packages,!*.Tests,}/**/*.cs
Wyam Deploy Branch: [NULL]
Wyam Deploy Remote: [NULL]
WebHost: cake-contrib.github.io
WebLinkRoot: Cake.Email.Common
WebBaseEditUrl: https://github.com/cake-contrib/Cake.Email.Common/tree/develop/docs/input/
NuSpecFilePath: D:/_build/Cake.Email.Common/Cake.Recipe/Cake.Recipe.nuspec
NugetConfig: D:/_build/Cake.Email.Common/NuGet.Config (False)
NuGetSources: https://api.nuget.org/v3/index.json, https://www.myget.org/F/cake-contrib/api/v3/index.json
RestorePackagesDirectory: [NULL]
EmailRecipient: [NULL]
EmailSenderName: [NULL]
EmailSenderAddress: [NULL]
Setting up tools...

----------------------------------------
Setup
----------------------------------------
Executing custom setup action...
Initializing Cake.Issues.Recipe (Version 0.4.3)...
Build script root directory: D:/_build/Cake.Email.Common
Repository root directory: D:/_build/Cake.Email.Common

----------------------------------------
Setup
----------------------------------------
Executing custom setup action...
Could not resolve path for tool "Cake.dll" using these directories: C:/ProgramData/Boxstarter,C:/WINDOWS/system32,C:/WINDOWS,C:/WINDOWS/System32/Wbem,C:/WINDOWS/System32/WindowsPowerShell/v1.0,C:/WINDOWS/System32/OpenSSH,C:/ProgramData/chocolatey/bin,C:/Program Files/Microsoft VS Code/bin,C:/Program Files/dotnet,C:/Program Files/Microsoft SQL Server/130/Tools/Binn,C:/WINDOWS/system32,C:/WINDOWS,C:/WINDOWS/System32/Wbem,C:/WINDOWS/System32/WindowsPowerShell/v1.0,C:/WINDOWS/System32/OpenSSH,C:/Program Files/Intel/WiFi/bin,C:/Program Files/Common Files/Intel/WirelessCommon,C:/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn,C:/Program Files/TortoiseGit/bin,C:/Program Files (x86)/dotnet,C:/Program Files/Git/cmd,C:/Program Files/Git/mingw64/bin,C:/Program Files/Git/usr/bin,C:/Program Files/Docker/Docker/resources/bin,C:/ProgramData/DockerDesktop/version-bin,C:/Users/desau/AppData/Local/Microsoft/WindowsApps,C:/Users/desau/AppData/Local/Programs/Fiddler,C:/Users/desau/.dotnet/tools,C:/Users/desau/AppData/Local/Microsoft/WindowsApps,C:/Users/desau/.dotnet/tools,C:/Program Files (x86)/GitHub CLI,C:/Users/desau/.dotnet/tools,C:/Users/desau/AppData/Local/Keybase
Could not resolve path for tool "cake" using these directories: C:/ProgramData/Boxstarter,C:/WINDOWS/system32,C:/WINDOWS,C:/WINDOWS/System32/Wbem,C:/WINDOWS/System32/WindowsPowerShell/v1.0,C:/WINDOWS/System32/OpenSSH,C:/ProgramData/chocolatey/bin,C:/Program Files/Microsoft VS Code/bin,C:/Program Files/dotnet,C:/Program Files/Microsoft SQL Server/130/Tools/Binn,C:/WINDOWS/system32,C:/WINDOWS,C:/WINDOWS/System32/Wbem,C:/WINDOWS/System32/WindowsPowerShell/v1.0,C:/WINDOWS/System32/OpenSSH,C:/Program Files/Intel/WiFi/bin,C:/Program Files/Common Files/Intel/WirelessCommon,C:/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn,C:/Program Files/TortoiseGit/bin,C:/Program Files (x86)/dotnet,C:/Program Files/Git/cmd,C:/Program Files/Git/mingw64/bin,C:/Program Files/Git/usr/bin,C:/Program Files/Docker/Docker/resources/bin,C:/ProgramData/DockerDesktop/version-bin,C:/Users/desau/AppData/Local/Microsoft/WindowsApps,C:/Users/desau/AppData/Local/Programs/Fiddler,C:/Users/desau/.dotnet/tools,C:/Users/desau/AppData/Local/Microsoft/WindowsApps,C:/Users/desau/.dotnet/tools,C:/Program Files (x86)/GitHub CLI,C:/Users/desau/.dotnet/tools,C:/Users/desau/AppData/Local/Keybase
Could not resolve path for tool "Cake" using these directories: C:/ProgramData/Boxstarter,C:/WINDOWS/system32,C:/WINDOWS,C:/WINDOWS/System32/Wbem,C:/WINDOWS/System32/WindowsPowerShell/v1.0,C:/WINDOWS/System32/OpenSSH,C:/ProgramData/chocolatey/bin,C:/Program Files/Microsoft VS Code/bin,C:/Program Files/dotnet,C:/Program Files/Microsoft SQL Server/130/Tools/Binn,C:/WINDOWS/system32,C:/WINDOWS,C:/WINDOWS/System32/Wbem,C:/WINDOWS/System32/WindowsPowerShell/v1.0,C:/WINDOWS/System32/OpenSSH,C:/Program Files/Intel/WiFi/bin,C:/Program Files/Common Files/Intel/WirelessCommon,C:/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn,C:/Program Files/TortoiseGit/bin,C:/Program Files (x86)/dotnet,C:/Program Files/Git/cmd,C:/Program Files/Git/mingw64/bin,C:/Program Files/Git/usr/bin,C:/Program Files/Docker/Docker/resources/bin,C:/ProgramData/DockerDesktop/version-bin,C:/Users/desau/AppData/Local/Microsoft/WindowsApps,C:/Users/desau/AppData/Local/Programs/Fiddler,C:/Users/desau/.dotnet/tools,C:/Users/desau/AppData/Local/Microsoft/WindowsApps,C:/Users/desau/.dotnet/tools,C:/Program Files (x86)/GitHub CLI,C:/Users/desau/.dotnet/tools,C:/Users/desau/AppData/Local/Keybase
Could not resolve path for tool "Cake.dll" using these directories: C:/ProgramData/Boxstarter,C:/WINDOWS/system32,C:/WINDOWS,C:/WINDOWS/System32/Wbem,C:/WINDOWS/System32/WindowsPowerShell/v1.0,C:/WINDOWS/System32/OpenSSH,C:/ProgramData/chocolatey/bin,C:/Program Files/Microsoft VS Code/bin,C:/Program Files/dotnet,C:/Program Files/Microsoft SQL Server/130/Tools/Binn,C:/WINDOWS/system32,C:/WINDOWS,C:/WINDOWS/System32/Wbem,C:/WINDOWS/System32/WindowsPowerShell/v1.0,C:/WINDOWS/System32/OpenSSH,C:/Program Files/Intel/WiFi/bin,C:/Program Files/Common Files/Intel/WirelessCommon,C:/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn,C:/Program Files/TortoiseGit/bin,C:/Program Files (x86)/dotnet,C:/Program Files/Git/cmd,C:/Program Files/Git/mingw64/bin,C:/Program Files/Git/usr/bin,C:/Program Files/Docker/Docker/resources/bin,C:/ProgramData/DockerDesktop/version-bin,C:/Users/desau/AppData/Local/Microsoft/WindowsApps,C:/Users/desau/AppData/Local/Programs/Fiddler,C:/Users/desau/.dotnet/tools,C:/Users/desau/AppData/Local/Microsoft/WindowsApps,C:/Users/desau/.dotnet/tools,C:/Program Files (x86)/GitHub CLI,C:/Users/desau/.dotnet/tools,C:/Users/desau/AppData/Local/Keybase
Could not resolve path for tool "cake" using these directories: C:/ProgramData/Boxstarter,C:/WINDOWS/system32,C:/WINDOWS,C:/WINDOWS/System32/Wbem,C:/WINDOWS/System32/WindowsPowerShell/v1.0,C:/WINDOWS/System32/OpenSSH,C:/ProgramData/chocolatey/bin,C:/Program Files/Microsoft VS Code/bin,C:/Program Files/dotnet,C:/Program Files/Microsoft SQL Server/130/Tools/Binn,C:/WINDOWS/system32,C:/WINDOWS,C:/WINDOWS/System32/Wbem,C:/WINDOWS/System32/WindowsPowerShell/v1.0,C:/WINDOWS/System32/OpenSSH,C:/Program Files/Intel/WiFi/bin,C:/Program Files/Common Files/Intel/WirelessCommon,C:/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn,C:/Program Files/TortoiseGit/bin,C:/Program Files (x86)/dotnet,C:/Program Files/Git/cmd,C:/Program Files/Git/mingw64/bin,C:/Program Files/Git/usr/bin,C:/Program Files/Docker/Docker/resources/bin,C:/ProgramData/DockerDesktop/version-bin,C:/Users/desau/AppData/Local/Microsoft/WindowsApps,C:/Users/desau/AppData/Local/Programs/Fiddler,C:/Users/desau/.dotnet/tools,C:/Users/desau/AppData/Local/Microsoft/WindowsApps,C:/Users/desau/.dotnet/tools,C:/Program Files (x86)/GitHub CLI,C:/Users/desau/.dotnet/tools,C:/Users/desau/AppData/Local/Keybase
Could not resolve path for tool "Cake" using these directories: C:/ProgramData/Boxstarter,C:/WINDOWS/system32,C:/WINDOWS,C:/WINDOWS/System32/Wbem,C:/WINDOWS/System32/WindowsPowerShell/v1.0,C:/WINDOWS/System32/OpenSSH,C:/ProgramData/chocolatey/bin,C:/Program Files/Microsoft VS Code/bin,C:/Program Files/dotnet,C:/Program Files/Microsoft SQL Server/130/Tools/Binn,C:/WINDOWS/system32,C:/WINDOWS,C:/WINDOWS/System32/Wbem,C:/WINDOWS/System32/WindowsPowerShell/v1.0,C:/WINDOWS/System32/OpenSSH,C:/Program Files/Intel/WiFi/bin,C:/Program Files/Common Files/Intel/WirelessCommon,C:/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn,C:/Program Files/TortoiseGit/bin,C:/Program Files (x86)/dotnet,C:/Program Files/Git/cmd,C:/Program Files/Git/mingw64/bin,C:/Program Files/Git/usr/bin,C:/Program Files/Docker/Docker/resources/bin,C:/ProgramData/DockerDesktop/version-bin,C:/Users/desau/AppData/Local/Microsoft/WindowsApps,C:/Users/desau/AppData/Local/Programs/Fiddler,C:/Users/desau/.dotnet/tools,C:/Users/desau/AppData/Local/Microsoft/WindowsApps,C:/Users/desau/.dotnet/tools,C:/Program Files (x86)/GitHub CLI,C:/Users/desau/.dotnet/tools,C:/Users/desau/AppData/Local/Keybase
Executing: "D:/_build/ZoomNet/tools/Cake/Cake.exe" "D:/_build/Cake.Email.Common/2c3bf140-c3f3-4614-a1ac-276efed1da0f.cake"
Tool GitVersion.Tool is already installed, with required version.
Deleting file D:/_build/Cake.Email.Common/2c3bf140-c3f3-4614-a1ac-276efed1da0f.cake
Testing to see if valid git repository...
Calculating Semantic Version...
Executing: "D:/_build/ZoomNet/tools/GitVersion.CommandLine.5.2.4/tools/GitVersion.exe" -output json -verbosity Debug
The application to execute does not exist: 'C:\Users\desau\AppData\Local\Temp\.net\GitVersion\hpgxtqvk.qfu\gitversion.dll'.

----------------------------------------
Teardown
----------------------------------------
Executing custom teardown action...
An error occurred in a custom teardown action.
Teardown error: System.InvalidOperationException: The context data has not been setup.
   at Cake.Core.CakeDataService.Get[TData]() in C:\projects\cake\src\Cake.Core\CakeDataService.cs:line 32
   at Cake.Core.CakeEngineActions.<>c__DisplayClass21_0`1.<RegisterTeardown>b__0(ITeardownContext context) in C:\projects\cake\src\Cake.Core\CakeEngineActions.cs:line 64
   at Cake.Core.DefaultExecutionStrategy.PerformTeardown(Action`1 action, ITeardownContext teardownContext) in C:\projects\cake\src\Cake.Core\DefaultExecutionStrategy.cs:line 67
   at Cake.Core.CakeEngine.PerformTeardown(IExecutionStrategy strategy, ICakeContext context, Stopwatch stopWatch, CakeReport report, Boolean exceptionWasThrown, Exception thrownException) in C:\projects\cake\src\Cake.Core\CakeEngine.cs:line 494
Error: System.AggregateException: One or more errors occurred. (GitVersion: Process returned an error (exit code -2147450726).)
 ---> Cake.Core.CakeException: GitVersion: Process returned an error (exit code -2147450726).
   at Cake.Core.Tooling.Tool`1.ProcessExitCode(Int32 exitCode) in C:\projects\cake\src\Cake.Core\Tooling\Tool.cs:line 136
   at Cake.Core.Tooling.Tool`1.Run(TSettings settings, ProcessArgumentBuilder arguments, ProcessSettings processSettings, Action`1 postAction) in C:\projects\cake\src\Cake.Core\Tooling\Tool.cs:line 121
   at Cake.Common.Tools.GitVersion.GitVersionRunner.Run(GitVersionSettings settings) in C:\projects\cake\src\Cake.Common\Tools\GitVersion\GitVersionRunner.cs:line 73
   at Cake.Common.Tools.GitVersion.GitVersionAliases.GitVersion(ICakeContext context, GitVersionSettings settings) in C:\projects\cake\src\Cake.Common\Tools\GitVersion\GitVersionAliases.cs:line 121
   at Submission#0.BuildVersion.CalculatingSemanticVersion(ICakeContext context) in D:\_build\ZoomNet\tools\Cake.Recipe.2.1.0\Content\gitversion.cake:line 92
   at Submission#0.<>c__DisplayClass0_8.<<Initialize>>b__150() in D:\_build\ZoomNet\tools\Cake.Recipe.2.1.0\Content\setup.cake:line 7
   at Submission#0.<<Initialize>>b__0_107(String tool, Action action) in D:\_build\ZoomNet\tools\Cake.Recipe.2.1.0\Content\tools.cake:line 57
   at Submission#0.<<Initialize>>b__0_86(ISetupContext context) in D:\_build\ZoomNet\tools\Cake.Recipe.2.1.0\Content\setup.cake:line 6
   at Cake.Core.CakeEngineActions.<>c__DisplayClass19_0`1.<RegisterSetup>b__0(ISetupContext context) in C:\projects\cake\src\Cake.Core\CakeEngineActions.cs:line 49
   at Cake.Core.DefaultExecutionStrategy.PerformSetup(Action`1 action, ISetupContext context) in C:\projects\cake\src\Cake.Core\DefaultExecutionStrategy.cs:line 44
   at Cake.Core.CakeEngine.PerformSetup(IExecutionStrategy strategy, ICakeContext context, CakeTask targetTask, CakeTask[] tasks, Stopwatch stopWatch, CakeReport report) in C:\projects\cake\src\Cake.Core\CakeEngine.cs:line 299
   at Cake.Core.CakeEngine.RunTargetAsync(ICakeContext context, IExecutionStrategy strategy, ExecutionSettings settings) in C:\projects\cake\src\Cake.Core\CakeEngine.cs:line 236
   at Cake.Scripting.BuildScriptHost.RunTargetAsync(String target) in C:\projects\cake\src\Cake\Scripting\BuildScriptHost.cs:line 47
   at Cake.Core.Scripting.ScriptHost.RunTarget(String target) in C:\projects\cake\src\Cake.Core\Scripting\ScriptHost.cs:line 191
   at Submission#0.<get_Build>b__712_0(String target) in D:\_build\ZoomNet\tools\Cake.Recipe.2.1.0\Content\build.cake:line 459
   at Submission#0.Builder.RunDotNetCore() in D:\_build\ZoomNet\tools\Cake.Recipe.2.1.0\Content\build.cake:line 489
   at Submission#0.<<Initialize>>d__0.MoveNext() in D:\_build\Cake.Email.Common\recipe.cake:line 22
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.RunSubmissionsAsync[TResult](ImmutableArray`1 precedingExecutors, Func`2 currentExecutor, StrongBox`1 exceptionHolderOpt, Func`2 catchExceptionOpt, CancellationToken cancellationToken)
   at Microsoft.CodeAnalysis.Scripting.Script`1.RunSubmissionsAsync(ScriptExecutionState executionState, ImmutableArray`1 precedingExecutors, Func`2 currentExecutor, Func`2 catchExceptionOpt, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at Cake.Scripting.Roslyn.RoslynScriptSession.Execute(Script script) in C:\projects\cake\src\Cake\Scripting\Roslyn\RoslynScriptSession.cs:line 136
   at Cake.Core.Scripting.ScriptRunner.Run(IScriptHost host, FilePath scriptPath, IDictionary`2 arguments) in C:\projects\cake\src\Cake.Core\Scripting\ScriptRunner.cs:line 219
   at Cake.Commands.BuildCommand.Execute(CakeOptions options) in C:\projects\cake\src\Cake\Commands\BuildCommand.cs:line 41
   at Cake.CakeApplication.Run(CakeOptions options) in C:\projects\cake\src\Cake\CakeApplication.cs:line 45
   at Cake.Program.Main() in C:\projects\cake\src\Cake\Program.cs:line 81
Non-Zero exit code (1), exiting...
gep13 commented 3 years ago

This seems a little strange to me...

"D:/_build/ZoomNet/tools/GitVersion.CommandLine.5.2.4/tools/GitVersion.exe"

Do you have any machine level Cake configuration setup?

Jericho commented 3 years ago

Something just caught my eye:

Executing: "D:/_build/ZoomNet/tools/Cake/Cake.exe" "D:/_build/Cake.Email.Common/2c3bf140-c3f3-4614-a1ac-276efed1da0f.cake"
Tool GitVersion.Tool is already installed, with required version.
Deleting file D:/_build/Cake.Email.Common/2c3bf140-c3f3-4614-a1ac-276efed1da0f.cake
Testing to see if valid git repository...
Calculating Semantic Version...
Executing: "D:/_build/ZoomNet/tools/GitVersion.CommandLine.5.2.4/tools/GitVersion.exe" -output json -verbosity Debug

This log message references D:/_build/ZoomNet/tools which is a folder for a project completely unrelated to my addin. It's an OSS project I maintain.

gep13 commented 3 years ago

Cake.Recipe 2.1.0, running a .Net Core Build, should be using GitVersion.Tool 5.5.1.

AdmiringWorm commented 3 years ago

To me, it almost sounds like a configuration/environment issue. From the looks of the output, it seems that you may have some stray environment variables that conflicts with the location that of both the addins and the tools.

I would recommend as a start to check if any of the environment variables listed here: https://cakebuild.net/docs/running-builds/configuration/default-configuration-values is somehow being set in your environment.

Could of course also be related to the question @gep13 asked previously (although I did not know cake supported a machine-level configuration setup):

Do you have any machine level Cake configuration setup?

Jericho commented 3 years ago

@AdmiringWorm you hit the nail on the head: the issue is indeed with some stray environment variables from the bootstrapper I use to build the OSS project that I maintain. @gep13 and I took the discussion to Slack and we eventually figured out is that Cake's own bootstrapper for the .net framework runner creates these environment variables but these three variables remain in the environment until you close your PowerShell session and, evidently, I had left my PowerShell session open all day.

So this whole issue is due to a combination of several factors:

  1. I used Cake's bootstrapper for .net framework that creates the environment variables to build my OSS project
  2. This bootstrapper does not clear the variables
  3. I did not close my PowerShell session
  4. I subsequently used Cake's bootstrapper for the dot net tool (which does not set the environment variables) to build another project

I will be raising an issue to get Cake's own bootstrapper corrected. I think the best solution would be for the bootstrapper to clear the variables when the build is done.