SharpeRAD / Cake.Powershell

Powershell addin for Cake
http://cakebuild.net
MIT License
83 stars 36 forks source link

Failed to install addin 'Cake.Powershell' #42

Closed AlbertoMonteiro closed 6 years ago

AlbertoMonteiro commented 6 years ago

I was using Cake.Powershell version 0.3.5 with Cake 0.19.5, now when using 0.4.0 with same Cake version I get this error:

Could not find any assemblies compatible with .NETFramework,Version=v4.5.
Error: Failed to install addin 'Cake.Powershell'.
dennisroche commented 6 years ago

Unless configured, the Cake preprocessor will always download the latest version of any #addin or #tool.

With packages updating to support Cake 0.22.0

A workaround for now is pin the version of the tools e.g. #addin "nuget:?package=Cake.Powershell&version=0.3.5"

To avoid random breakages for your build script, I would recommend pinning the version of all dependencies.

SharpeRAD commented 6 years ago

Thanks @dennisroche 👍

I've added a description to the ReadMe and to the Troubleshooting page to explain Cakes changes.

I'm also going to leave this issue open for a couple of weeks as I've closed 3 identical issues in the last day and I suspect there will be more to come 😢

Dalmirog-zz commented 6 years ago

Thanks @dennisroche ! And also thanks @SharpeRAD for leaving this issue open making it easier for me to find it :)

SharpeRAD commented 6 years ago

Closing this now as I think its been long enough that people should be aware of the changes to Cake.