xamarin / XamarinComponents

Plugins for Xamarin
MIT License
1.99k stars 695 forks source link

dotnet cake commands always failing with cake.tool 1.1.0 on Windows #1134

Open softlion opened 3 years ago

softlion commented 3 years ago

Hi, i'm trying to run this command against the ARCore project.

dotnet cake --target=externals

Some errors:

Error: Error(s) occurred when compiling build script:
D:/repos/_clones/XamarinComponents/Android/ARCore/build.cake(72,35): error CS1503: Argument 2 : conversion impossible de 'bool' en 'Cake.Common.IO.DeleteDirectorySettings'
D:/repos/_clones/XamarinComponents/common.cake(44,4): error CS0103: Le nom 'XCodeBuild' n'existe pas dans le contexte actuel
D:/repos/_clones/XamarinComponents/common.cake(44,19): error CS0246: Le nom de type ou d'espace de noms 'XCodeBuildSettings' est introuvable (vous manque-t-il une directive using ou une référence d'assembly ?)
D:/repos/_clones/XamarinComponents/common.cake(91,4): error CS0103: Le nom 'XCodeBuild' n'existe pas dans le contexte actuel

I know this may work on a mac instead. Any idea how to make it work on Windows though ?

softlion commented 3 years ago

ok i commented out the content of common and that worked. But a better solution is needed.

dmariogatto commented 3 years ago

This is blocked until the below issues are resolved,

softlion commented 3 years ago

Is Cake really the way to go. It seems simpler tu use msbuild directly.

moljac commented 3 years ago

@softlion Do I see raised hand for volunteer?

There are historical reasons for cake. Components team was much faster and productive with cake. Cake is evolving and issues you face I face too. Cake 1.0.0 caused me/us some headaches and right now I am quite sure I will not have time to fix all cake scripts in this repo. So, cake version 0.38.5 is installed on CI.