cake-build/resources

Add Cake CoreCLR bootstrapper

Opened this issue · 8 comments

There is a Cake.CoreCLR package, but there is no documentation and even bootstrapper how to use it.

dv42 commented

@adamhathcock bootstrapper works great for simple cake files. However, once I added addin, I received Error: Could not locate nuget.exe..

I'm using following syntax to add addin.
#addin "Cake.Incubator"

Is there any way to configure Cake not to use nuget.exe but use dotnet add $TOOLS_PROJ package $ADDIN_NAME instead?

Currently I'm using docker image microsoft/aspnetcore-build:2.1.300-preview1and nuget is not installed there by default.

I don’t know off hand. I don’t use any addins but I suspect the answer is No. Probably more work needed to remove the nuget executable dependency.

@dv42 you should use in-process NuGet, which is enabled by default in Cake 0.25.0 and newer. That will not require nuget.exe for installing addins or tools. See docs for more info.

dv42 commented

@mholo65 thanks a lot! in-process NuGet setting + script that uses dotnet core instead of mono simplifies docker setup.

Btw, currently UseInProcessClient is set to false. I think it's time to merge #51 as soon as Cake 0.25.0 is already released.

While investigating the possibility to use cake as a scripting engine for build scripts we also evaluated cake for use with dotnet core containers. As a result we implemented a cake.coreclr bootstrapper script that a ci could use. It works fine on systems that provide the tools curl and unzip. Feel free to use the build script, it is available over here but do respect the Apache-2.0 license.