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
6
votes
1 answer

Cake PeekXml does not "ignore" namespace

Is it a bug or per design that xmlns attribute is not ignored? (cake version 0.33.0) With an Xml like so (a too simplified nuspec file):
LosManos
  • 7,195
  • 6
  • 56
  • 107
6
votes
1 answer

Is it possible to call powershell command from within Cake task

I'm switching from Psake build tool to Cake (https://cakebuild.net/). I'm creating a scripts for quite big solution (30+ projects) with (currently) 9 different deploys. In Psake it was trivial to call PowerShell commands, since entire script has…
Martin Trampus
  • 133
  • 1
  • 10
6
votes
1 answer

cake build angular application to deploy to azure

I have created a angular application using command ng new APPNAME. I want to use cake build to deploy this application. Is it possible to use cake build? If so how? My end target is to deploy it to azure, but i need to do it with Cake build. I have…
Akshay Bheda
  • 773
  • 1
  • 6
  • 22
6
votes
2 answers

XUnit working with .NET Core using Cake

I have a relatively simple solution. All works fine under MSBuild (in VS 2017 Mac). I'm creating a Cake build script, but I just cannot get unit testing to work. There are tons of examples, but it seems that none are valid anymore. Some call for…
Sean Hederman
  • 460
  • 3
  • 13
6
votes
1 answer

Cake MSBuild setting properties

I have a batch file that I am trying to replicate with Cake (C# Make). It makes a call to MSBuild with a few properties. Here is the line from the batch; "%MSBuildPath%msbuild.exe" ..\public\projectToBeBuilt.sln /t:Rebuild…
Seth Faulkner
  • 461
  • 1
  • 5
  • 16
6
votes
2 answers

Cake NuGetRestore always wants MSBuild14?

While trying to rig up a solution to build with Cake v0.19.1 on a machine that has only ever known Visual Studio 2017, I can't seem to get NuGetRestore to accept a setting of MSBuildVersion = NuGetMSBuildVersion.MSBuild15. Is there some magic step…
patridge
  • 26,385
  • 18
  • 89
  • 135
6
votes
1 answer

How can I do a git clone operation using Cake

Is it possible to clone a git repository using a Cake script? If so, how can this be done?
Gary Ewan Park
  • 17,610
  • 5
  • 42
  • 60
6
votes
2 answers

How to get passed and fail test case count in xunit using cake(c# make) script

I try to use the cake script for running the test cases written in Xunit using the cake script , I need to know the number of passed and failed test cases count. #tool "nuget:?package=xunit.runner.console" var testAssemblies =…
Venkat
  • 2,549
  • 2
  • 28
  • 61
6
votes
1 answer

Cake: Build script progress

I'm currently building a Cake build script with interaction to teamcity and I'd like to provide progress messages. I can easily report the task name, but I am unable to find out what the progress is within the build script. Think like ("executing…
Sebazzz
  • 1,205
  • 2
  • 15
  • 33
5
votes
3 answers

Build script with C#

For insight into the below, read: http://martinfowler.com/articles/rake.html I've been using Rake (with Albacore) recently, and like it alot. Mostly the strength of having the Ruby language right at hand when I need it. I must admit I am alot more…
user191152
5
votes
2 answers

Publish build artifact through build.cake instead of Azure Devops

Is it possible to publish an build artifact to Azure Devops/TFS through build.cake script? Where should the responsibility for publishing the build artifact be configured when converting to cake scripts, in the build.cake script or in the Azure…
Emir Husic
  • 717
  • 5
  • 16
5
votes
1 answer

Can I define a reusable subroutine/function/method within a Cake script?

I'm trying out Cake (C# Make). So far all the examples and documentation have the script file declaring all of its code inside delegates, like this: Task("Clean") .Does(() => { // Delete a file. DeleteFile("./file.txt"); // Clean a…
Joe Sewell
  • 6,067
  • 1
  • 21
  • 34
5
votes
1 answer

How to tag and version automatically on build using Azure Devops and Cake Build?

I am using Cake scripts to build out my software in Azure DevOps through continuous integration. The requirement is that when we commit/merge into to the dev or master branch, the appropriate build pipeline(s) are kicked off. As part of this build…
Ross Gustafson
  • 1,182
  • 3
  • 16
  • 32
5
votes
0 answers

cake custom MsBuild path

Maybe simple question however I'm stuck. I try to configure cake script. I'm using the following script Task("Build") .Description("Builds the Solution") .Does(() => { MSBuild(SOLUTION_FILE, CreateSettings()); …
Marcus X
  • 95
  • 1
  • 6
5
votes
1 answer

mscorlib not found when building Xamarin.Android project with CakeBuild

I'm in the process of integrating a Xamarin Android project into our CI pipeline. We already use CakeBuild for other .NET projects and so I wanted to use it here, as well. The problem is that I always get the following error message when trying to…
germi
  • 4,628
  • 1
  • 21
  • 38
1
2
3
19 20