Created
October 18, 2017 18:11
-
-
Save nlowe/3504f47647fba35a2b9b364c228402a7 to your computer and use it in GitHub Desktop.
Cake 0.22+ Addin Dependency Reference Bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Preparing to run build script... | |
Running build script... | |
Analyzing build script... | |
Processing build script... | |
Compiling build script... | |
======================================== | |
Test | |
======================================== | |
Executing task: Test | |
Module directory does not exist. | |
Analyzing build script... | |
Analyzing C:/Users/nlowe/Projects/cake-addin-deps/addin-test.cake... | |
Processing build script... | |
Installing addins... | |
Attempting to gather dependency information for package 'Cake.DummyAddin.1.0.0' with respect to project 'C:/Users/nlowe/Projects/cake-addin-deps/tools/Addins', targeting '.NETFramework,Version=v4.6.1' | |
Missing C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\cake.dummyaddin\1.0.0\cake.dummyaddin.1.0.0.nupkg | |
GET https://api.nuget.org/v3/registration3-gz-semver2/cake.dummyaddin/index.json | |
GET https://api.nuget.org/v3/registration3-gz-semver2/cake.core/index.json | |
GET https://api.nuget.org/v3/registration3-gz-semver2/bouncycastle/index.json | |
OK https://api.nuget.org/v3/registration3-gz-semver2/bouncycastle/index.json 182ms | |
OK https://api.nuget.org/v3/registration3-gz-semver2/cake.core/index.json 252ms | |
OK https://api.nuget.org/v3/registration3-gz-semver2/cake.dummyaddin/index.json 395ms | |
Total number of results gathered : 9 | |
Gathering dependency information took 621.59 ms | |
Summary of time taken to gather dependencies per source : | |
C:/Users/nlowe/Projects/cake-addin-deps/tools/Addins - 22.36 ms | |
C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\ - 16.45 ms | |
https://api.nuget.org/v3/index.json - 1.15 sec | |
Attempting to resolve dependencies for package 'Cake.DummyAddin.1.0.0' with DependencyBehavior 'Lowest' | |
Resolving dependency information took 0 ms | |
Resolving actions to install package 'Cake.DummyAddin.1.0.0' | |
Resolved actions to install package 'Cake.DummyAddin.1.0.0' | |
Found package 'BouncyCastle 1.8.1' in 'C:/Users/nlowe/Projects/cake-addin-deps/tools/Addins'. | |
Found package 'Cake.Core 0.23.0' in 'C:/Users/nlowe/Projects/cake-addin-deps/tools/Addins'. | |
Found package 'Cake.DummyAddin 1.0.0' in 'C:/Users/nlowe/Projects/cake-addin-deps/tools/Addins'. | |
Package BouncyCastle.1.8.1 has already been installed. | |
Successfully installed 'BouncyCastle 1.8.1' to C:/Users/nlowe/Projects/cake-addin-deps/tools/Addins | |
Package Cake.Core.0.23.0 has already been installed. | |
Successfully installed 'Cake.Core 0.23.0' to C:/Users/nlowe/Projects/cake-addin-deps/tools/Addins | |
Package Cake.DummyAddin.1.0.0 has already been installed. | |
Successfully installed 'Cake.DummyAddin 1.0.0' to C:/Users/nlowe/Projects/cake-addin-deps/tools/Addins | |
Executing nuget actions took 40.08 ms | |
Package Cake.DummyAddin depends on package Cake.Core.0.23.0. Will not load this dependency... | |
The addin Cake.DummyAddin will reference addin.dll. | |
Verifying assembly 'addin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. | |
Adding assembly reference to mscorlib.dll... | |
Adding assembly reference to System.Core.dll... | |
Adding assembly reference to Cake.Core.dll... | |
Adding assembly reference to Cake.Common.dll... | |
Adding assembly reference to Cake.exe... | |
Adding assembly reference to System.dll... | |
Adding assembly reference to System.Xml.dll... | |
Adding assembly reference to System.Xml.Linq.dll... | |
Adding assembly reference to System.Data.dll... | |
Adding assembly reference to System.Runtime.dll... | |
Adding assembly reference to addin.dll... | |
Importing namespace addin... | |
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.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.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.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.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.Export... | |
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.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.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 System... | |
Importing namespace System.Collections.Generic... | |
Importing namespace System.IO... | |
Importing namespace System.Linq... | |
Importing namespace System.Text... | |
Importing namespace System.Threading.Tasks... | |
Compiling build script... | |
======================================== | |
Default | |
======================================== | |
Executing task: Default | |
An error occurred when executing task 'Default'. | |
Error: System.AggregateException: One or more errors occurred. ---> System.IO.FileNotFoundException: Could not load file or assembly 'BouncyCastle.Crypto, Version=1.8.1.0, Culture=neutral, PublicKeyToken=0e99375e54769942' or one of its dependencies. The system cannot find the file specified. | |
at addin.addin.Foo(ICakeContext ctx) | |
at Submission#0.Foo() | |
at Submission#0.<<Initialize>>b__0_0() | |
at Cake.Core.CakeTaskBuilderExtensions.<>c__DisplayClass8_0.<Does>b__0(ICakeContext x) | |
at Cake.Core.ActionTask.<Execute>d__14.MoveNext() | |
--- End of stack trace from previous location where exception was thrown --- | |
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() | |
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) | |
at Cake.Core.DefaultExecutionStrategy.<ExecuteAsync>d__4.MoveNext() | |
--- End of stack trace from previous location where exception was thrown --- | |
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() | |
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) | |
at Cake.Core.CakeEngine.<ExecuteTaskAsync>d__29.MoveNext() | |
--- End of stack trace from previous location where exception was thrown --- | |
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() | |
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) | |
at Cake.Core.CakeEngine.<RunTargetAsync>d__18.MoveNext() | |
--- End of stack trace from previous location where exception was thrown --- | |
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() | |
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) | |
at Cake.Scripting.BuildScriptHost.<RunTargetAsync>d__3.MoveNext() | |
--- End of stack trace from previous location where exception was thrown --- | |
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() | |
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) | |
at Cake.Core.Scripting.ScriptHost.RunTarget(String target) | |
at Submission#0.<<Initialize>>d__0.MoveNext() | |
--- End of stack trace from previous location where exception was thrown --- | |
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() | |
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) | |
at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.<RunSubmissionsAsync>d__9`1.MoveNext() | |
--- End of stack trace from previous location where exception was thrown --- | |
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() | |
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) | |
at Microsoft.CodeAnalysis.Scripting.Script`1.<RunSubmissionsAsync>d__21.MoveNext() | |
--- 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) | |
at Cake.Core.Scripting.ScriptRunner.Run(IScriptHost host, FilePath scriptPath, IDictionary`2 arguments) | |
at Cake.Commands.BuildCommand.Execute(CakeOptions options) | |
at Cake.CakeApplication.Run(CakeOptions options) | |
at Cake.Program.Main() | |
---> (Inner Exception #0) System.IO.FileNotFoundException: Could not load file or assembly 'BouncyCastle.Crypto, Version=1.8.1.0, Culture=neutral, PublicKeyToken=0e99375e54769942' or one of its dependencies. The system cannot find the file specified. | |
File name: 'BouncyCastle.Crypto, Version=1.8.1.0, Culture=neutral, PublicKeyToken=0e99375e54769942' | |
at addin.addin.Foo(ICakeContext ctx) | |
at Submission#0.Foo() | |
at Submission#0.<<Initialize>>b__0_0() | |
at Cake.Core.CakeTaskBuilderExtensions.<>c__DisplayClass8_0.<Does>b__0(ICakeContext x) | |
at Cake.Core.ActionTask.<Execute>d__14.MoveNext() | |
--- End of stack trace from previous location where exception was thrown --- | |
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() | |
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) | |
at Cake.Core.DefaultExecutionStrategy.<ExecuteAsync>d__4.MoveNext() | |
--- End of stack trace from previous location where exception was thrown --- | |
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() | |
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) | |
at Cake.Core.CakeEngine.<ExecuteTaskAsync>d__29.MoveNext() | |
--- End of stack trace from previous location where exception was thrown --- | |
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() | |
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) | |
at Cake.Core.CakeEngine.<RunTargetAsync>d__18.MoveNext() | |
--- End of stack trace from previous location where exception was thrown --- | |
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() | |
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) | |
at Cake.Scripting.BuildScriptHost.<RunTargetAsync>d__3.MoveNext() | |
--- End of stack trace from previous location where exception was thrown --- | |
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() | |
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) | |
at Cake.Core.Scripting.ScriptHost.RunTarget(String target) | |
at Submission#0.<<Initialize>>d__0.MoveNext() | |
--- End of stack trace from previous location where exception was thrown --- | |
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() | |
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) | |
at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.<RunSubmissionsAsync>d__9`1.MoveNext() | |
--- End of stack trace from previous location where exception was thrown --- | |
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() | |
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) | |
at Microsoft.CodeAnalysis.Scripting.Script`1.<RunSubmissionsAsync>d__21.MoveNext() | |
=== Pre-bind state information === | |
LOG: DisplayName = BouncyCastle.Crypto, Version=1.8.1.0, Culture=neutral, PublicKeyToken=0e99375e54769942 | |
(Fully-specified) | |
LOG: Appbase = file:///C:/Users/nlowe/Projects/cake-addin-deps/tools/Cake/ | |
LOG: Initial PrivatePath = NULL | |
Calling assembly : addin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. | |
=== | |
LOG: This bind starts in LoadFrom load context. | |
WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load(). | |
LOG: Using application configuration file: C:\Users\nlowe\Projects\cake-addin-deps\tools\Cake\Cake.exe.Config | |
LOG: Using host configuration file: | |
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config. | |
LOG: Post-policy reference: BouncyCastle.Crypto, Version=1.8.1.0, Culture=neutral, PublicKeyToken=0e99375e54769942 | |
LOG: Attempting download of new URL file:///C:/Users/nlowe/Projects/cake-addin-deps/tools/Cake/BouncyCastle.Crypto.DLL. | |
LOG: Attempting download of new URL file:///C:/Users/nlowe/Projects/cake-addin-deps/tools/Cake/BouncyCastle.Crypto/BouncyCastle.Crypto.DLL. | |
LOG: Attempting download of new URL file:///C:/Users/nlowe/Projects/cake-addin-deps/tools/Cake/BouncyCastle.Crypto.EXE. | |
LOG: Attempting download of new URL file:///C:/Users/nlowe/Projects/cake-addin-deps/tools/Cake/BouncyCastle.Crypto/BouncyCastle.Crypto.EXE. | |
LOG: Attempting download of new URL file:///C:/Users/nlowe/Projects/cake-addin-deps/tools/Addins/Cake.DummyAddin.1.0.0/lib/net46/BouncyCastle.Crypto.DLL. | |
LOG: Attempting download of new URL file:///C:/Users/nlowe/Projects/cake-addin-deps/tools/Addins/Cake.DummyAddin.1.0.0/lib/net46/BouncyCastle.Crypto/BouncyCastle.Crypto.DLL. | |
LOG: Attempting download of new URL file:///C:/Users/nlowe/Projects/cake-addin-deps/tools/Addins/Cake.DummyAddin.1.0.0/lib/net46/BouncyCastle.Crypto.EXE. | |
LOG: Attempting download of new URL file:///C:/Users/nlowe/Projects/cake-addin-deps/tools/Addins/Cake.DummyAddin.1.0.0/lib/net46/BouncyCastle.Crypto/BouncyCastle.Crypto.EXE. | |
<--- | |
An error occurred when executing task 'Test'. | |
Error: One or more errors occurred. | |
Cake: Process returned an error (exit code 1). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment