Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Cake CoreCLR bootstrapper #28

Open
esergueev opened this issue Mar 31, 2017 · 8 comments
Open

Add Cake CoreCLR bootstrapper #28

esergueev opened this issue Mar 31, 2017 · 8 comments

Comments

@esergueev
Copy link

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

@adamhathcock
Copy link

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/

@luigiberrettini
Copy link

@dv42
Copy link

dv42 commented Mar 4, 2018

@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.

@adamhathcock
Copy link

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.

@bjorkstromm
Copy link
Member

@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
Copy link

dv42 commented Mar 5, 2018

@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.

@dpsenner
Copy link

dpsenner commented May 29, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants