Jump to content

Has anybody used Cake (C# Make) ?

AlTech

I heard about Cake a long time ago........


And i recently stumbled upon it again.

 

I double checked the forum to see if anybody had mentioned Cake (C# Make) but apparently not......

Spoiler

ck1.PNG.9e3eaf8d9dda2c64f106af1aaa527224.PNG

ck2.PNG.fcf974c3dc6456be50a2458d66feaf5e.PNG

 

ck3.PNG.62c6335f884634d922e4806468f32029.PNG

 

I was thinking of using Cake to make using MSBuild signifcantly easier for compiling .NET Core apps.

 

Every time I want to release a new version of a .NET core app, I need to manually tell MS Build to compile each binary.

 

I was hoping Cake would allow me to setup variables and speed up this process significantly.

E.g.

Build binary for Windows 10 X64

Build binary for Windows 10 32 Bit ARM

Build binary for Windows 10 64 Bit ARM

Build binary for WIndows 7 64 Bit

Build binary for Windows 8.1 64 Bit

Build binary for Linux 64 Bit

Build binary for Linux 32 Bit ARM

 

But Cake's documentation is not great......

 

So yeah, Anybody have any experience with Cake (C# Make)?

 

Thanks

Judge a product on its own merits AND the company that made it.

How to setup MSI Afterburner OSD | How to make your AMD Radeon GPU more efficient with Radeon Chill | (Probably) Why LMG Merch shipping to the EU is expensive

Oneplus 6 (Early 2023 to present) | HP Envy 15" x360 R7 5700U (Mid 2021 to present) | Steam Deck (Late 2022 to present)

 

Mid 2023 AlTech Desktop Refresh - AMD R7 5800X (Mid 2023), XFX Radeon RX 6700XT MBA (Mid 2021), MSI X370 Gaming Pro Carbon (Early 2018), 32GB DDR4-3200 (16GB x2) (Mid 2022

Noctua NH-D15 (Early 2021), Corsair MP510 1.92TB NVMe SSD (Mid 2020), beQuiet Pure Wings 2 140mm x2 & 120mm x1 (Mid 2023),

Link to comment
Share on other sites

Link to post
Share on other sites

bump

Judge a product on its own merits AND the company that made it.

How to setup MSI Afterburner OSD | How to make your AMD Radeon GPU more efficient with Radeon Chill | (Probably) Why LMG Merch shipping to the EU is expensive

Oneplus 6 (Early 2023 to present) | HP Envy 15" x360 R7 5700U (Mid 2021 to present) | Steam Deck (Late 2022 to present)

 

Mid 2023 AlTech Desktop Refresh - AMD R7 5800X (Mid 2023), XFX Radeon RX 6700XT MBA (Mid 2021), MSI X370 Gaming Pro Carbon (Early 2018), 32GB DDR4-3200 (16GB x2) (Mid 2022

Noctua NH-D15 (Early 2021), Corsair MP510 1.92TB NVMe SSD (Mid 2020), beQuiet Pure Wings 2 140mm x2 & 120mm x1 (Mid 2023),

Link to comment
Share on other sites

Link to post
Share on other sites

I've actually never used Cake either, but I think you might be able to get by with something like

Task("buildEverything").Does(() => {
  DotNetBuild("myProject.sln", settings => settings.SetConfiguration(configuration).SetPlatformTarget(PlatformTarget.x64));
  DotNetBuild("myProject.sln", settings => settings.SetConfiguration(configuration).SetPlatformTarget(PlatformTarget.x86));
  ...
});

RunTarget("buildEverything")

Although I don't think this is exactly right since the PlatformTarget enum doesn't actually have values for all of the builds you would like to do.

 

As a warning, this is mostly based on looking through a few resources/tutorials and piecing them together with this resolved Github issue that deals with setting the platform target in Cake. Along with a basic browsing of the documentation for the DotNetBuild function. So, basically, no clue if this works. Hopefully it helps you in the right direction though.

 

Worst case scenario, you could always also try to take a powershell/cmd scripting "makefile" type approach. If all you want to do is run the same build commands with different platform target arguments and you don't really care about the dependency management or test verification type things that Cake seems to provide, it could end up being easier.

Link to comment
Share on other sites

Link to post
Share on other sites

On 9/5/2017 at 11:25 AM, mackncheesiest said:

 

Worst case scenario, you could always also try to take a powershell/cmd scripting "makefile" type approach. If all you want to do is run the same build commands with different platform target arguments and you don't really care about the dependency management or test verification type things that Cake seems to provide, it could end up being easier.

I don't care about too many features of what Cake provides.

 

It's mainly just the build commands I care about.

Judge a product on its own merits AND the company that made it.

How to setup MSI Afterburner OSD | How to make your AMD Radeon GPU more efficient with Radeon Chill | (Probably) Why LMG Merch shipping to the EU is expensive

Oneplus 6 (Early 2023 to present) | HP Envy 15" x360 R7 5700U (Mid 2021 to present) | Steam Deck (Late 2022 to present)

 

Mid 2023 AlTech Desktop Refresh - AMD R7 5800X (Mid 2023), XFX Radeon RX 6700XT MBA (Mid 2021), MSI X370 Gaming Pro Carbon (Early 2018), 32GB DDR4-3200 (16GB x2) (Mid 2022

Noctua NH-D15 (Early 2021), Corsair MP510 1.92TB NVMe SSD (Mid 2020), beQuiet Pure Wings 2 140mm x2 & 120mm x1 (Mid 2023),

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×