resources icon indicating copy to clipboard operation
resources copied to clipboard

Add Cake CoreCLR bootstrapper

Open esergueev opened this issue 8 years ago • 8 comments
trafficstars

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

esergueev avatar Mar 31 '17 08:03 esergueev

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/

adamhathcock avatar Jul 27 '17 14:07 adamhathcock

PowerShell bootstrapper: https://gist.github.com/luigiberrettini/19a124d24af74039ae87065adb007e2c

luigiberrettini avatar Oct 12 '17 10:10 luigiberrettini

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

dv42 avatar Mar 04 '18 16:03 dv42

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.

adamhathcock avatar Mar 04 '18 17:03 adamhathcock

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

bjorkstromm avatar Mar 04 '18 20:03 bjorkstromm

@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 https://github.com/cake-build/resources/pull/51 as soon as Cake 0.25.0 is already released.

dv42 avatar Mar 05 '18 05:03 dv42

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.

dpsenner avatar May 29 '18 11:05 dpsenner

MIT license:

  • https://github.com/luigiberrettini/NLog.Targets.Syslog/blob/v5.0.0/tools/build.ps1
  • https://github.com/luigiberrettini/NLog.Targets.Syslog/blob/v5.0.0/tools/build.sh

luigiberrettini avatar May 29 '18 16:05 luigiberrettini