Questions tagged [cakebuild]

Cake (C# Make) is a build automation system with a C# DSL to do things like compiling code, copy files/folders, running unit tests, compress files and build NuGet packages.

Cake is a cross-platform build automation tool built on top of Roslyn and the Mono Compiler which uses C# as the scripting language. Cake is open source and the source code is hosted on GitHub.

Cake is available on Windows, Linux and macOS.

294 questions
0
votes
1 answer

How do I find the full directory for an IFile in Cake?

I'm writing a script to produce some artefacts from my build so I want to clean up unwanted files first. I'm using CleanDirectory(dirPath, predicate). I'm finding it disturbingly hard to work out the directory for a file. If I use GetDirectoryName()…
Jack Ukleja
  • 13,061
  • 11
  • 72
  • 113
0
votes
1 answer

Git clone issue in cake

Cloning the source using below link http://cakebuild.net/api/Cake.Git/GitAliases/2ACDDC0F GitClone("https://github.com/cake-build/cake.git", "c:/temp/cake", "username", "password", new GitCloneSettings{ BranchName = "development"…
christo
  • 129
  • 1
  • 2
  • 13
0
votes
0 answers

Cake Web Deployment Issue

Working on web deployment(http://cakebuild.net/api/Cake.WebDeploy/). Faced the below issue An error occurred when executing task 'Deploy'. Error: Could not connect to the remote computer ("net1-7103"). On the remote computer, make sure that Web…
christo
  • 129
  • 1
  • 2
  • 13
0
votes
1 answer

How to clear the local nuget package cache using the Cake script

I need to clear the NuGet cached in my system. I can run the following command in my command prompt. nuget locals -clear all How can I do the same using Cake script. Please suggest the possible ways.
Venkat
  • 2,549
  • 2
  • 28
  • 61
0
votes
2 answers

How to use exclude pattern(.pdb,.xml) while zip the directory files in cake?

I want to exclude some format files like PDB, XML and BMP files in my zip package. Please help me on this http://cakebuild.net/api/Cake.Common.IO/ZipAliases/B6C83EAE.
vijay
  • 701
  • 2
  • 12
  • 26
0
votes
1 answer

How can I use the latest pre-release version of Cake

I want to make use of some of the new features that are available in the soon to be released version of Cake. What modifications do I have to make to the bootstrapper and packages.config file in order to download the latest pre-release version,…
Gary Ewan Park
  • 17,610
  • 5
  • 42
  • 60
0
votes
2 answers

Static field fails because compiler thinks its non-static

In writing a Cake addin I have the following: public static class Aliases { [CakeMethodAlias] public static VaultInfo GetVaultInfo(this ICakeContext context, string userName) { Debugger.Launch(); return new VaultInfo("","","","",""); }…
aateeque
  • 2,161
  • 5
  • 23
  • 35
0
votes
2 answers

How to make a registry entry using C# cake?

I need to create a registry entry based on finding of 32/64-bit system from cake script. I can see the File operations reference, Directory operations reference in C# cake site. But i could not find the registry related reference in C# cake. Could…
-1
votes
1 answer

Bamboo support in CAKE

How good is Bamboo support in CAKE? We're currently on Team City but considering moving to Bamboo. What we need: 1) Report error from cake script 2) Set build number from cake script 3) Publish artifacts from cake script All these are currently…
adogg
  • 29
  • 6
1 2 3
19
20