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
2 answers

Using CLI commands in cake build - Microsoft app center

I am new to cake build. I want to run Microsoft appcenter command from Cake script. I tried using cake.powershell for it https://cakebuild.net/addins/powershell/ StartPowershellFile("./appcenter.ps1"); // appcenter.ps1 had just CLI command for…
0
votes
1 answer

Cake Script - Unable to refer .Net 4.6 library

Here is the my cake script. #reference "System.IO.Compression.dll"; #reference "System.IO.Compression.FileSystem.dll"; using System; var target = Argument("target", "Default"); Task("UnzipDoc") .Does(() => { …
Kannan D
  • 467
  • 1
  • 4
  • 15
0
votes
1 answer

Can't load cake module - Preprocessor directive expected

I'm trying to run a cake build script that loads a module for long file path but it only returns error CS1024: Preprocessor directive expected In the cake file I have added #module nuget:?package=Cake.LongPath.Module&version=0.5.0 and this is the…
Binke
  • 897
  • 8
  • 25
0
votes
1 answer

Remotely set file permission to IIS AppPool user with C#

So far all the Googling on this has talked about domain users, or running the process on the machine locally, neither of which is a fit for me. I'm running a process our build/deployment server (a Cake build script running on Team City, or locally…
Colin Mackay
  • 18,736
  • 7
  • 61
  • 88
0
votes
2 answers

When to 'inline' tasks and when to extract a separate

I am trying to figure out what criteria should be for a decision to 'inline' some work as a set of calls directly in a lets say Does clause (using aliases), or have a set of separate tasks with proper dependencies. It seems like it can be done in…
0
votes
1 answer

Exception thrown when running asp.net core application on Ubuntu

I have an Ubuntu VM which publishes an ASP.Net Core application 2.0 with CakeBuild . The output is then moved to another Ubuntu VM where .Net Core SDK already installed. When I try to dotnet the main dll file, the following exception is…
Ayman
  • 1,387
  • 4
  • 20
  • 35
0
votes
1 answer

How to make the Cake-build's Example project work on Docker

I am trying to use Docker with the Cake build automation system with no success. I am starting running the mono image: docker run -it mono:latest Then I install git: apt-get update apt-get install git Then I clone the Cake's example project: git…
0
votes
1 answer

How to avoid long path issue in cake build?

We are facing below error while running build.cake The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. please provide any work…
vijay
  • 701
  • 2
  • 12
  • 26
0
votes
1 answer

CAKE: There is no argument given that corresponds to the required formal parameter

I use CAKE 0.21.1.0. Here is the relevant snippet of code: var teamCityLoggerZipFolderPath = @".\TeamCity\CustomLogger\VSTest.TeamCityLogger.zip"; var dllDestinationFolder = @"C:\Program Files (x86)\Microsoft Visual Studio…
M.Y. Babt
  • 2,733
  • 7
  • 27
  • 49
0
votes
0 answers

Cake - How to restore Nugets from local feed?

I have a local NuGet Feed that I want to use with Cake I tried that using: #tool "nuget:file://masterserver/publish/?package=restsharp" (filesystem folder)
But got this error: Unable to find package 'restsharp' ???? and this: #addin…
CShape
  • 11
  • 4
0
votes
1 answer

CakeBuild: Get failed to install tool 'NUnit.ConsoleRunner'

I used CakeBuild to build and test my Xamarin Portable Class Library. In the build.cake script I defined that I want to use the NUnit-Console to run my testcases. So I do #tool nuget:?package=NUnit.ConsoleRunner Unfortunatelly I get the following…
Pepper
  • 194
  • 11
0
votes
0 answers

Build errors with Cake, but not Visual Studio 2017

So when I build my solution in VS2017, everything works great. I'm getting started with Cake Build and I'm running into issues. When running .\build.ps1 I end up with the error Program.cs(19,30): error CS0246: The type or namespace name…
Gonkers
  • 1,971
  • 2
  • 10
  • 9
0
votes
1 answer

How to use COM Interop references in Cake?

We have a some project with the COM Interop references (is static linked to the project). I created the cake-build script with the reference to this DLL. On the processing: Task("Build").Does(()=> { NuGetRestore(solutionFile); …
Ignatii Marine
  • 101
  • 5
  • 9
0
votes
1 answer

Specflow Autogenerated c# code using cake

I was wondering if there was any way Cake could build Visual Studio Solution and detect changes in feature files and generate the corresponding changes. If not Cake, can it be done using any other way other than Visual Studio? I have tried finding…
0
votes
1 answer

Cake Build Script: Error when running XUnit Integration Tests - Cannot get ConfigurationManager.ConnectionStrings["FlexConnString"]

I have an integration test using XUnit that accesses the database. We need to be able to get the database connection string from the app.config file. When running the test from the IDE it works beautifully and the connection string is found. When I…
GloryDev
  • 670
  • 5
  • 8
1 2 3
19
20