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.
This is what I currently use as a CoreCLR bootstrapper https://adamhathcock.blog/2017/07/12/net-core-on-circle-ci-2-0-using-docker-and-cake/
PowerShell bootstrapper:
https://gist.github.com/luigiberrettini/19a124d24af74039ae87065adb007e2c
@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-preview1
and 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.
@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.