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

HttpParameterBinding without code coverage

OpenCover On Cake script does not detect coverage on my Owin.Testing usage applying HttpPArameterBiding to some ApiController action parameter. I have Created a new type of my ApiController that as an action with my ParameterBindingAttribute that I…
0
votes
1 answer

How to get a unqiue build number into Azure DevOps and Cake?

I am using Cake Build script to build our .NET software and I need a unique build number to be baked into the DLLs primarily because we need to know the exact binaries we used in case we need to debug dump files with the binaries. First thing, here…
Ross Gustafson
  • 1,182
  • 3
  • 16
  • 32
0
votes
0 answers

Deploy from Travis to Codecov with cake

I've got a project which builds, runs unit tests and generates coverage reports set up. The last part which is failing is to upload the reports to Codecov from Travis. It works locally from my Windows PC. Travis configuration: language:…
Philippe
  • 1,949
  • 4
  • 31
  • 57
0
votes
1 answer

.NET Core 2.1 version error with Cake Build 4.0 NuGetRestore and MSBuild actions

Cake Build 4.0.0 runs NuGetRestore and MSBuild methods by executes MSBuild CLI command. From my understanding, Cake downloads certain version of MSBuild. In my solution, it is mostly .NET Framework, but our testing project is targeting .NET Core 2.1…
Ross Gustafson
  • 1,182
  • 3
  • 16
  • 32
0
votes
1 answer

How to replace the contents of a Git repository with Cake

I'm working on a Cake script that should build a Wyam site and deploy it to Github Sites. This means the entire content of the master branch should be replaced with the new Wyam build. So far I have created the Cake script below, which works as it…
Johan Vergeer
  • 5,208
  • 10
  • 48
  • 105
0
votes
0 answers

MSBuild TypeScript not regenerating all JS files

I've incorporated TypeScript in an existing VS2017 Solution for a few files so far. What I noticed is between developer PCs we are getting failed Jasmine tests sometimes because msbuild is not regenerating all TypeScript files to JS on solution…
Sean
  • 51
  • 1
  • 4
0
votes
1 answer

Cake: How to get result from MSpec

i tried to write a cake script for my ci. I'm new to cake. As part of this script I wanted to execute MSpec tests. Task("Run-Tests") .IsDependentOn("Build") .Does(() => { var configurationIntoTests = configuration + "/*.Tests.dll"; …
venter
  • 1,890
  • 2
  • 12
  • 15
0
votes
2 answers

Cake build script calling AWS.ElasticBeanstalk DescribeEnvironments() throwing MissingMethodException

This is a very specific error, I have spent the last several days investigating it but have hit a dead end. A task in my cake build script is trying to check if the elastic beanstalk environment is ready. We have been using this addin…
0
votes
1 answer

Log the warning messages into a text file from a cake script for DotNetCoreBuild

Is it possible to do the same thing as here but for DotNetCoreBuild? If yes, how? This workaround is not suitable, because I need to execute a next target and I need those logs after build step.
Kostya Vyrodov
  • 6,257
  • 5
  • 23
  • 34
0
votes
1 answer

Octopus Deploy check packge before promoting to Production

In development we version our builds like so: 0.0.0-{branch-name}+{short-git-hash} Something like 0.0.0-add-new-button+8ad89d For production releases our versions are normal SemVer: 1.2.3 I am trying to add a check in octo so that we can't…
joepour
  • 6,831
  • 10
  • 32
  • 29
0
votes
1 answer

Consolidate packages with Cake build

Can Cake build verify if the NuGet packages in a multi-project VS solution are consolidated? I would like the build to fail if there are multiple versions of the same NuGet dependency in use.
Jan H
  • 4,287
  • 5
  • 24
  • 34
0
votes
1 answer

Using Cake, start a process in a new window

I am trying to use Cake to build my application and start it. I can get it to start one process, but I want to start multiple processes in separate windows. For example, I would like to start my API server and web server in separate powershell…
JamesFaix
  • 8,050
  • 9
  • 37
  • 73
0
votes
1 answer

Cake build NuGetPush throws permission denied

I'm building my .NET Core app in Travis CI using Cake script, when it comes to var d = new DirectoryInfo(packageOutputPath.ToString()); var Files = d.GetFiles("*.nupkg").Select(x => new FilePath(x.FullName)); var key =…
Carlos28
  • 2,381
  • 3
  • 21
  • 36
0
votes
1 answer

Cake MSBuild Targets

I am trying to use Cake's built in MSBuild functionality to only build a specific Target (i.e. Compile). Using the example at: https://cakebuild.net/api/Cake.Common.Tools.MSBuild/MSBuildAliases/C240F0FB var settings = new MSBuildSettings() { …
Ibz
  • 518
  • 1
  • 8
  • 26
0
votes
1 answer

How to automate the console application exe using cake build

I have created console application and we want to automate the console application using cake build. I have tried with following techniques. Convert the console application to nugget package and host in nexus server. After that include package in…