Cake: AddIn updated to Cake 0.26.1 raise exception after install

Created on 5 Mar 2018  路  6Comments  路  Source: cake-build/cake

I have updated the Cake.Compression AddIn to Cake 0.26.1. The AddIn is installed correctly, but raises after installation an exception.

What You Are Seeing?

Cake.Core.CakeException: Failed to install addin 'Cake.Compression'.

What is Expected?

No exception.

What version of Cake are you using?

0.26.1

Are you running on a 32 or 64 bit system?

x64

What environment are you running on? Windows? Linux? Mac?

Windows

How Did You Get This To Happen? (Steps to Reproduce)

#addin "nuget:?package=Cake.Compression&version=0.1.5"

Task("Build")
    .Does(() => { });

Task("Default")
    .IsDependentOn("Build");

RunTarget("Default");

Output Log

Preparing to run build script...
Running build script...
Module directory does not exist.
NuGet.config not found.
Analyzing build script...
Analyzing D:/Projects/Cake Test/build.cake...
Processing build script...
Installing addins...
Retrieving package 'Cake.Compression 0.1.5' from 'https://www.nuget.org/api/v2/'.
Adding package 'Cake.Compression.0.1.5' to folder 'D:\Projects\Cake Test\tools\Addins'
Added package 'Cake.Compression.0.1.5' to folder 'D:\Projects\Cake Test\tools\Addins'
Added package 'Cake.Compression.0.1.5' to folder 'D:\Projects\Cake Test\tools\Addins' from source 'https://www.nuget.org/api/v2/'
Successfully installed 'Cake.Compression 0.1.5' to D:/Projects/Cake Test/tools/Addins
Executing nuget actions took 120,59 ms
Error: Cake.Core.CakeException: Failed to install addin 'Cake.Compression'.
   bei Cake.Core.Scripting.ScriptProcessor.InstallAddins(IReadOnlyCollection`1 addins, DirectoryPath installPath)
   bei Cake.Core.Scripting.ScriptRunner.Run(IScriptHost host, FilePath scriptPath, IDictionary`2 arguments)
   bei Cake.Commands.BuildCommand.Execute(CakeOptions options)
   bei Cake.CakeApplication.Run(CakeOptions options)
   bei Cake.Program.Main()

All 6 comments

@akordowski could you please run the same again using Diagnostic Verbosity, and post the output here? Thanks!

@gep13 This is the diagnostic output.

@akordowski seems like you addin is targetting 4.6.2. Cake targets 4.6.1.

@gep13 Yes, thats the case. Thank you for the hint, I will fix it.

@akordowski let us know if that resolves the issue, and we can get this issue closed.

I changed the framework target to 4.6.1 and it works now as expected. Thanks a lot for your help and time!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vktr picture vktr  路  6Comments

tompazourek picture tompazourek  路  3Comments

coxp picture coxp  路  5Comments

augustoproiete picture augustoproiete  路  5Comments

gabrielweyer picture gabrielweyer  路  3Comments