cakebuild Questions

1

I have a .net 2.2 core console app that is running permanently as a HostedService in a docker container. It is not using ASPNet.Core and it's not an API, it's a pure .net-core application. When st...
Lisbethlisbon asked 18/4, 2019 at 9:32

2

Solved

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 s...
Microvolt asked 31/7, 2019 at 13:19

3

In a cake script, when using the load directive (#load) can this be optional? If the referenced file does not exist I don't want the CAKE script to return an exception. The documentation reference...
Sprocket asked 2/8, 2017 at 15:8

3

Solved

I am trying to use the following Cake script: Task("Create-NuGet-Packages") .IsDependentOn("Build") .WithCriteria(() =>DirectoryExists(parameters.Paths.Directories.NugetNuspecDirectory)) .Do...
Unceremonious asked 12/8, 2016 at 6:40

1

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): <?xml version="1.0" encoding="utf-8"?> <packa...
Garrett asked 11/7, 2019 at 21:41

1

Solved

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 fi...
Lightless asked 17/5, 2019 at 20:58

3

Solved

I have a small .NET Core project, where the complete build/test/deploy process is handled in a Cake script. I have a powershell script that runs the cake script. When running the script locally, ...
Lilith asked 18/5, 2018 at 9:25

2

Solved

Running Cake Build script on my local machine works fine but when same script is run on TeamCity, the following error appears: Nuspec file does not exist in package. Any idea what could have cau...
Wojak asked 13/3, 2018 at 5:56

2

Solved

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 ...
Bouncy asked 19/9, 2017 at 19:0

2

Solved

I'm looking for a way to export the test output from a .NET Core application, to TeamCity via a Cake build script. Currently, I'm simply running: DotNetCoreTest("./src/MyTestProject"); But I ca...
Allowance asked 30/1, 2017 at 23:58

2

Solved

I am currentlly in the process of writing a Cake build script to build a number of ASP.NET MVC sites. At the moment I am unable to see an option to pass arguments to MSBuild to produce the _Publi...
Riviera asked 20/4, 2016 at 13:48

2

Solved

I have an ASP.NET MVC application. I am trying to implement CI and CD using Gitlab and Cake.net. In order to test more easily, I installed Gitlab CI multi runner on my machine. I registered it wit...
Lubricity asked 30/1, 2017 at 19:2

1

Solved

I have a powershell script which has a string[] parameter and try to pass value to this from batch file PowerShell Script [string[]]$ScriptArgs Batch File powershell -File Foobar.ps1 -ScriptAr...
Beitch asked 23/2, 2018 at 23:20

1

Solved

I'm refactoring a Cake build script, and decided to introduce a class to hold some build settings that get passed around a lot and/or that exist in the global scope. Some of the settings come from...
Ishmael asked 25/12, 2017 at 12:6

1

Solved

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 ...
Hadleigh asked 27/11, 2017 at 16:46

1

Solved

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...
Acheron asked 17/11, 2017 at 6:35

1

Solved

I use CAKE 0.22.0. Depending on the arguments passed into build.cake, I want to load different .cake files. E.g., if the parameter VisualStudioVersion has the value 2013, I want to load the vs2013...
Booster asked 9/10, 2017 at 14:8

1

Solved

I'm using cake build and trying to upload the cake unit test results to AppVeyor, but Cake/Nunit3 are generating empty results when I run locally and I assume that is what is causing my errors on A...
Tackett asked 22/9, 2017 at 18:18

2

I am very new to cakebuild. I want to update the version info of assemblyinfo.cs using cakebuild. public static void CreateAssemblyInfo() method overwrites the entire content of the assemblyinfo f...
Burgonet asked 2/11, 2016 at 13:35

1

Solved

In a cake build script there is a very neat way of documenting the tasks using the .Description() extension on the Task. These descriptions are displayed when calling the build script with the -sho...
Dicotyledon asked 31/7, 2017 at 10:34

1

Solved

A co-worker recently added .NET Standard support to one of our projects using the new VS2017 .csproj format: This seems to have broken my script as I get the following error when using the Cake ...
Radarman asked 21/7, 2017 at 23:44

1

Solved

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\proje...
Evyn asked 10/7, 2017 at 15:13

2

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 = NuGet...
Encampment asked 30/3, 2017 at 21:43

1

I couldn't find any information related with running custom system command on this site: cakebuild.net/dsl How can I do it? The real command I want to run is 'upx mproject.exe'
Tjirebon asked 12/3, 2017 at 9:46

1

Solved

Is it possible to clone a git repository using a Cake script? If so, how can this be done?
Crescentia asked 8/12, 2016 at 20:13

© 2022 - 2024 — McMap. All rights reserved.